diff options
| author | Jakub Kicinski <[email protected]> | 2023-03-28 18:49:35 -0700 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-03-28 18:49:35 -0700 |
| commit | b133fffe57ae941dedf607142a9616b8701cdcb2 (patch) | |
| tree | 33e9332fa6c9527e66b875a7422f5f47ec2f7491 /include/linux/types.h | |
| parent | 163c2c7059178898ad7512294ca3a768df2c1515 (diff) | |
| parent | ee1ee6db07795d9637bc5e8993a8ddcf886541ef (diff) | |
Merge branch 'locking/rcuref' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pulling rcurefs from Peter for tglx's work.
Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'include/linux/types.h')
| -rw-r--r-- | include/linux/types.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h index ea8cf60a8a79..688fb943556a 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -175,6 +175,12 @@ typedef struct { } atomic64_t; #endif +typedef struct { + atomic_t refcnt; +} rcuref_t; + +#define RCUREF_INIT(i) { .refcnt = ATOMIC_INIT(i - 1) } + struct list_head { struct list_head *next, *prev; }; |