summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kern/sref.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/kern/sref.h b/kern/sref.h
index 1d2a635..f035a64 100644
--- a/kern/sref.h
+++ b/kern/sref.h
@@ -31,6 +31,8 @@
#ifndef _KERN_SREF_H
#define _KERN_SREF_H
+#include <kern/init.h>
+
/*
* Scalable reference counter.
*/
@@ -105,4 +107,10 @@ void sref_counter_dec(struct sref_counter *counter);
*/
struct sref_counter * sref_weakref_get(struct sref_weakref *weakref);
+/*
+ * This init operation provides :
+ * - module fully initialized
+ */
+INIT_OP_DECLARE(sref_setup);
+
#endif /* _KERN_SREF_H */