Changeset f2cb80a in mainline for kernel/generic/include/lib/refcount.h
- Timestamp:
- 2024-02-23T17:57:23Z (11 months ago)
- Children:
- 192019f
- Parents:
- 86f862c (diff), 90ba06c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- boba-buba <120932204+boba-buba@…> (2024-02-23 17:57:23)
- git-committer:
- GitHub <noreply@…> (2024-02-23 17:57:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/lib/refcount.h
r86f862c rf2cb80a 49 49 } atomic_refcount_t; 50 50 51 #define REFCOUNT_INITIALIZER() { \ 52 .__cnt = ATOMIC_VAR_INIT(0), \ 53 } 54 51 55 static inline void refcount_init(atomic_refcount_t *rc) 52 56 { 53 atomic_ store_explicit(&rc->__cnt, 0, memory_order_relaxed);57 atomic_init(&rc->__cnt, 0); 54 58 } 55 59
Note:
See TracChangeset
for help on using the changeset viewer.