Motr  M0
atomic64.h File Reference
#include <asm/atomic.h>
#include "lib/misc.h"
Include dependency graph for atomic64.h:

Go to the source code of this file.

Data Structures

struct  m0_atomic64
 

Macros

#define __MOTR_LIB_LINUX_KERNEL_ATOMIC64_H__
 

Functions

static void m0_atomic64_set (struct m0_atomic64 *a, int64_t num)
 
static int64_t m0_atomic64_get (const struct m0_atomic64 *a)
 
static void m0_atomic64_inc (struct m0_atomic64 *a)
 
static void m0_atomic64_dec (struct m0_atomic64 *a)
 
static void m0_atomic64_add (struct m0_atomic64 *a, int64_t num)
 
static void m0_atomic64_sub (struct m0_atomic64 *a, int64_t num)
 
static int64_t m0_atomic64_add_return (struct m0_atomic64 *a, int64_t delta)
 
static int64_t m0_atomic64_sub_return (struct m0_atomic64 *a, int64_t delta)
 
static bool m0_atomic64_inc_and_test (struct m0_atomic64 *a)
 
static bool m0_atomic64_dec_and_test (struct m0_atomic64 *a)
 
static bool m0_atomic64_cas (int64_t *loc, int64_t old, int64_t new)
 
static void m0_mb (void)
 

Macro Definition Documentation

◆ __MOTR_LIB_LINUX_KERNEL_ATOMIC64_H__

#define __MOTR_LIB_LINUX_KERNEL_ATOMIC64_H__

Definition at line 24 of file atomic64.h.

Function Documentation

◆ m0_atomic64_add()

static void m0_atomic64_add ( struct m0_atomic64 a,
int64_t  num 
)
inlinestatic

Definition at line 62 of file atomic64.h.

◆ m0_atomic64_add_return()

static int64_t m0_atomic64_add_return ( struct m0_atomic64 a,
int64_t  delta 
)
inlinestatic

Definition at line 73 of file atomic64.h.

◆ m0_atomic64_cas()

static bool m0_atomic64_cas ( int64_t *  loc,
int64_t  old,
int64_t  new 
)
inlinestatic

Definition at line 94 of file atomic64.h.

◆ m0_atomic64_dec()

static void m0_atomic64_dec ( struct m0_atomic64 a)
inlinestatic

Definition at line 57 of file atomic64.h.

◆ m0_atomic64_dec_and_test()

static bool m0_atomic64_dec_and_test ( struct m0_atomic64 a)
inlinestatic

Definition at line 89 of file atomic64.h.

◆ m0_atomic64_get()

static int64_t m0_atomic64_get ( const struct m0_atomic64 a)
inlinestatic

Definition at line 47 of file atomic64.h.

◆ m0_atomic64_inc()

static void m0_atomic64_inc ( struct m0_atomic64 a)
inlinestatic

Definition at line 52 of file atomic64.h.

◆ m0_atomic64_inc_and_test()

static bool m0_atomic64_inc_and_test ( struct m0_atomic64 a)
inlinestatic

Definition at line 84 of file atomic64.h.

◆ m0_atomic64_set()

static void m0_atomic64_set ( struct m0_atomic64 a,
int64_t  num 
)
inlinestatic

Definition at line 41 of file atomic64.h.

◆ m0_atomic64_sub()

static void m0_atomic64_sub ( struct m0_atomic64 a,
int64_t  num 
)
inlinestatic

Definition at line 67 of file atomic64.h.

◆ m0_atomic64_sub_return()

static int64_t m0_atomic64_sub_return ( struct m0_atomic64 a,
int64_t  delta 
)
inlinestatic

Definition at line 79 of file atomic64.h.

◆ m0_mb()

static void m0_mb ( void  )
inlinestatic

Definition at line 99 of file atomic64.h.