diff options
author | Peter Zijlstra <peterz@infradead.org> | 2020-07-29 14:00:57 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-08-26 13:42:02 +0300 |
commit | a435b9a14356587cf512ea6473368a579373c74c (patch) | |
tree | a32c367027487b27bed5d119d1ed24ba36b1c9c0 /security/lockdown | |
parent | 6eb6d05958f3208b3dd2b5311f1a6e68abdbe5d5 (diff) | |
download | linux-a435b9a14356587cf512ea6473368a579373c74c.tar.xz |
locking/refcount: Provide __refcount API to obtain the old value
David requested means to obtain the old/previous value from the
refcount API for tracing purposes.
Duplicate (most of) the API as __refcount*() with an additional
'int *' argument into which, if !NULL, the old value will be stored.
Requested-by: David Howells <dhowells@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lkml.kernel.org/r/20200729111120.GA2638@hirez.programming.kicks-ass.net
Diffstat (limited to 'security/lockdown')
0 files changed, 0 insertions, 0 deletions