diff options
author | Richard Braun <rbraun@sceen.net> | 2018-01-10 23:43:32 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-01-10 23:43:32 +0100 |
commit | a80b56b8b39f5c23b34f88fda0c936c61372b4ba (patch) | |
tree | 998d5b656f3e45bde44c63d7555fde363d1787ed /kern/sref.h | |
parent | f53f4cef543c0f1195811edae18e716fb145faf7 (diff) | |
parent | 21e4ae378ff6bbf22fe03eb5eaa51caa9750a7ee (diff) |
Merge branch 'sref_rework'
Diffstat (limited to 'kern/sref.h')
-rw-r--r-- | kern/sref.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kern/sref.h b/kern/sref.h index 5299b9d2..768f1eea 100644 --- a/kern/sref.h +++ b/kern/sref.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2017 Richard Braun. + * Copyright (c) 2014-2018 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -86,6 +86,8 @@ void sref_counter_init(struct sref_counter *counter, /* * Counter operations. + * + * These functions may safely be called with preemption disabled. */ void sref_counter_inc(struct sref_counter *counter); void sref_counter_dec(struct sref_counter *counter); @@ -95,6 +97,8 @@ void sref_counter_dec(struct sref_counter *counter); * * If successful, increment the reference counter before returning it. * Otherwise return NULL. + * + * This function may safely be called with preemption disabled. */ struct sref_counter * sref_weakref_get(struct sref_weakref *weakref); |