Motr  M0
bitmap.h File Reference
#include "lib/types.h"
#include "lib/assert.h"
#include "xcode/xcode_attr.h"
Include dependency graph for bitmap.h:

Go to the source code of this file.

Data Structures

struct  m0_bitmap
 
struct  m0_bitmap_onwire
 

Macros

#define __MOTR_LIB_BITMAP_H__
 

Functions

struct m0_bitmap_onwire M0_XCA_DOMAIN (conf|rpc)
 
M0_INTERNAL int m0_bitmap_init (struct m0_bitmap *map, size_t nr)
 
M0_INTERNAL void m0_bitmap_fini (struct m0_bitmap *map)
 
M0_INTERNAL bool m0_bitmap_get (const struct m0_bitmap *map, size_t idx)
 
M0_INTERNAL int m0_bitmap_ffs (const struct m0_bitmap *map)
 
M0_INTERNAL int m0_bitmap_ffz (const struct m0_bitmap *map)
 
M0_INTERNAL void m0_bitmap_set (struct m0_bitmap *map, size_t idx, bool val)
 
M0_INTERNAL void m0_bitmap_reset (struct m0_bitmap *map)
 
M0_INTERNAL void m0_bitmap_copy (struct m0_bitmap *dst, const struct m0_bitmap *src)
 
M0_INTERNAL size_t m0_bitmap_set_nr (const struct m0_bitmap *map)
 
M0_INTERNAL int m0_bitmap_onwire_init (struct m0_bitmap_onwire *ow_map, size_t nr)
 
M0_INTERNAL void m0_bitmap_onwire_fini (struct m0_bitmap_onwire *ow_map)
 
M0_INTERNAL void m0_bitmap_store (const struct m0_bitmap *im_map, struct m0_bitmap_onwire *ow_map)
 
M0_INTERNAL void m0_bitmap_load (const struct m0_bitmap_onwire *ow_map, struct m0_bitmap *im_map)
 
 M0_BASSERT (8==sizeof((struct m0_bitmap *) 0) ->b_words[0])
 

Variables

size_t bo_size
 
uint64_t * bo_words
 

Macro Definition Documentation

◆ __MOTR_LIB_BITMAP_H__

#define __MOTR_LIB_BITMAP_H__

Definition at line 26 of file bitmap.h.

Variable Documentation

◆ bo_size

size_t bo_size

size of bo_words.

Definition at line 215 of file bitmap.h.

◆ bo_words

uint64_t* bo_words

Words with bits.

Definition at line 217 of file bitmap.h.