summaryrefslogtreecommitdiffstats
path: root/translate.h
diff options
context:
space:
mode:
Diffstat (limited to 'translate.h')
-rw-r--r--translate.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/translate.h b/translate.h
index fde8af9f..6c8b4785 100644
--- a/translate.h
+++ b/translate.h
@@ -64,9 +64,13 @@ struct unparser
// ...
// } context [MAXCONCURRENCY];
+ // struct {
virtual void emit_global (vardecl* v) = 0;
- // static TYPE global_NAME;
- // static rwlock_t global_NAME_lock;
+ // TYPE s_NAME; // NAME is prefixed with "s_" to avoid kernel id collisions
+ // rwlock_t s_NAME_lock;
+ // } global = {
+ virtual void emit_global_init (vardecl* v) = 0;
+ // };
virtual void emit_global_param (vardecl* v) = 0;
// module_param_... -- at end of file