#ifndef _LINUX_REFCOUNT_H #define _LINUX_REFCOUNT_H #include <linux/atomic.h> #include <linux/mutex.h> #include <linux/spinlock.h> #include <linux/kernel.h> typedef struct refcount_struct { atomic_t refs; } refcount_t; #define REFCOUNT_INIT(n) { .refs = ATOMIC_INIT(n), }
static inline void refcount_set(refcount_t *r, unsigned int n) { atomic_set(&r->refs, n); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Peter Zijlstra | 25 | 100.00% | 1 | 100.00% |
Total | 25 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Peter Zijlstra | 22 | 100.00% | 1 | 100.00% |
Total | 22 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Peter Zijlstra | 223 | 98.67% | 2 | 66.67% |
Elena Reshetova | 3 | 1.33% | 1 | 33.33% |
Total | 226 | 100.00% | 3 | 100.00% |