XenevaOS
Loading...
Searching...
No Matches
Public Attributes | List of all members
refcount_struct Struct Reference

#include <refcount_types.h>

Collaboration diagram for refcount_struct:
Collaboration graph
[legend]

Public Attributes

atomic_t refs
 

Detailed Description

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.

Member Data Documentation

◆ refs

atomic_t refcount_struct::refs

The documentation for this struct was generated from the following file: