summaryrefslogtreecommitdiff
path: root/kern/sref.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-02-07 00:29:50 +0100
committerRichard Braun <rbraun@sceen.net>2018-02-12 21:08:35 +0100
commitd25e6ff0c86a2a2cdb37bb836dc3849ad53eaa63 (patch)
tree0ae285f70c8434926b62a95654ac4d3f71228881 /kern/sref.h
parent92b6427b8192a932d1327ef3c43578a99b8107af (diff)
kern/sref: declare the sref_setup init operation
Diffstat (limited to 'kern/sref.h')
-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 */