XenevaOS
Loading...
Searching...
No Matches
Classes | Typedefs
refcount_types.h File Reference
#include <linux/atomic.h>
Include dependency graph for refcount_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  refcount_struct
 

Typedefs

typedef struct refcount_struct refcount_t
 

Typedef Documentation

◆ refcount_t

typedef struct refcount_struct refcount_t

typedef refcount_t - variant of atomic_t specialized for reference counts @refs: atomic_t counter field

The counter saturates at REFCOUNT_SATURATED and will not move once there. This avoids wrapping the counter and causing 'spurious' use-after-free bugs.