summaryrefslogtreecommitdiff
path: root/kern/sref_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/sref_i.h')
-rw-r--r--kern/sref_i.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/kern/sref_i.h b/kern/sref_i.h
index 27f962c5..695808cc 100644
--- a/kern/sref_i.h
+++ b/kern/sref_i.h
@@ -51,17 +51,19 @@ struct sref_weakref {
* It's tempting to merge the flags into the node member, but since they're
* not protected by the same lock, store them separately.
*
- * TODO Locking keys.
+ * Locking keys :
+ * (c) sref_counter
+ * (g) sref_data
*/
struct sref_counter {
sref_noref_fn_t noref_fn;
union {
struct {
- struct slist_node node;
+ struct slist_node node; /* (g) */
struct spinlock lock;
- int flags;
- unsigned long value;
+ int flags; /* (c) */
+ unsigned long value; /* (c) */
struct sref_weakref *weakref;
};