Motr  M0
lockers.h File Reference
#include "lib/types.h"
Include dependency graph for lockers.h:

Go to the source code of this file.

Data Structures

struct  m0_lockers_type
 
struct  m0_lockers
 

Macros

#define __MOTR_LIB_LOCKERS_H__
 
#define M0_LOCKERS_DECLARE(scope, name, max)   M0_LOCKERS__DECLARE(scope, name, name, max)
 
#define M0_LOCKERS__DECLARE(scope, name, amb, max)
 
#define M0_LOCKERS_DEFINE(scope, name, field)   M0_LOCKERS__DEFINE(scope, name, name, field)
 
#define M0_LOCKERS__DEFINE(scope, name, amb, field)
 

Functions

M0_INTERNAL void m0_lockers_init (const struct m0_lockers_type *lt, struct m0_lockers *lockers)
 
M0_INTERNAL void m0_lockers_fini (struct m0_lockers_type *lt, struct m0_lockers *lockers)
 
M0_INTERNAL int m0_lockers_allot (struct m0_lockers_type *lt)
 
M0_INTERNAL void m0_lockers_free (struct m0_lockers_type *lt, int key)
 
M0_INTERNAL void m0_lockers_set (const struct m0_lockers_type *lt, struct m0_lockers *lockers, uint32_t key, void *data)
 
M0_INTERNAL void * m0_lockers_get (const struct m0_lockers_type *lt, const struct m0_lockers *lockers, uint32_t key)
 
M0_INTERNAL void m0_lockers_clear (const struct m0_lockers_type *lt, struct m0_lockers *lockers, uint32_t key)
 
M0_INTERNAL bool m0_lockers_is_empty (const struct m0_lockers_type *lt, const struct m0_lockers *lockers, uint32_t key)
 

Macro Definition Documentation

◆ __MOTR_LIB_LOCKERS_H__

#define __MOTR_LIB_LOCKERS_H__

Definition at line 27 of file lockers.h.