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

Go to the source code of this file.

Macros

#define REFCOUNT_INIT(n)   { .refs = ATOMIC_INIT(n), }
 
#define REFCOUNT_MAX   0x7fffffff
 
#define REFCOUNT_SATURATED   ((int)0xc0000000)
 

Enumerations

enum  refcount_saturation_type {
  REFCOUNT_ADD_NOT_ZERO_OVF , REFCOUNT_ADD_OVF , REFCOUNT_ADD_UAF , REFCOUNT_SUB_UAF ,
  REFCOUNT_DEC_LEAK
}
 

Functions

void refcount_warn_saturate (refcount_t *r, enum refcount_saturation_type t)
 

Macro Definition Documentation

◆ REFCOUNT_INIT

#define REFCOUNT_INIT (   n)    { .refs = ATOMIC_INIT(n), }

◆ REFCOUNT_MAX

#define REFCOUNT_MAX   0x7fffffff

◆ REFCOUNT_SATURATED

#define REFCOUNT_SATURATED   ((int)0xc0000000)

Enumeration Type Documentation

◆ refcount_saturation_type

Enumerator
REFCOUNT_ADD_NOT_ZERO_OVF 
REFCOUNT_ADD_OVF 
REFCOUNT_ADD_UAF 
REFCOUNT_SUB_UAF 
REFCOUNT_DEC_LEAK 

Function Documentation

◆ refcount_warn_saturate()

void refcount_warn_saturate ( refcount_t *  r,
enum refcount_saturation_type  t 
)