summaryrefslogtreecommitdiff
path: root/kern/sref_i.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-02-06 20:45:24 +0100
committerRichard Braun <rbraun@sceen.net>2018-02-07 01:08:53 +0100
commit6db72a1aeaddf038b12490fe9310a10693ffbf7a (patch)
treebe5ffafd3cb11afce2dbddf7f25629e042cca21e /kern/sref_i.h
parentc302412778d43f1ed6223349911013d43eadfdcd (diff)
kern/sref: allow usage from interrupt context
Diffstat (limited to 'kern/sref_i.h')
-rw-r--r--kern/sref_i.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kern/sref_i.h b/kern/sref_i.h
index 695808cc..65d0c1bf 100644
--- a/kern/sref_i.h
+++ b/kern/sref_i.h
@@ -54,6 +54,8 @@ struct sref_weakref {
* Locking keys :
* (c) sref_counter
* (g) sref_data
+ *
+ * Interrupts must be disabled when accessing a global counter.
*/
struct sref_counter {
sref_noref_fn_t noref_fn;