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

Go to the source code of this file.

Functions

static bool key_is_valid (const struct m0_lockers_type *lt, int key)
 
M0_INTERNAL void m0_lockers_init (const 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)
 
M0_INTERNAL void m0_lockers_fini (struct m0_lockers_type *lt, struct m0_lockers *lockers)