summaryrefslogtreecommitdiff
path: root/kern/sref.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-02-06 20:45:45 +0100
committerRichard Braun <rbraun@sceen.net>2018-02-07 01:08:53 +0100
commitc04a26ee892d440979a84b891d6fac14cd4686f1 (patch)
tree0f59f0c1258f694d8a460e2ae6a874e8b002fa56 /kern/sref.h
parent6db72a1aeaddf038b12490fe9310a10693ffbf7a (diff)
kern/sref: allow custom initial values
Diffstat (limited to 'kern/sref.h')
-rw-r--r--kern/sref.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/kern/sref.h b/kern/sref.h
index 9cee283..1d2a635 100644
--- a/kern/sref.h
+++ b/kern/sref.h
@@ -77,10 +77,11 @@ void sref_report_periodic_event(void);
/*
* Initialize a scalable reference counter.
*
- * The counter is set to 1. The no-reference function is called (from thread
- * context) when it is certain that the true number of references is 0.
+ * The no-reference function is called (from thread context) when it is
+ * certain that the true number of references is 0.
*/
void sref_counter_init(struct sref_counter *counter,
+ unsigned long init_value,
struct sref_weakref *weakref,
sref_noref_fn_t noref_fn);