1 #ifndef FIO_BITMAP_H 2 #define FIO_BITMAP_H 3 4 #include <inttypes.h> 5 #include "types.h" 6 7 struct axmap; 8 struct axmap *axmap_new(unsigned long nr_bits); 9 void axmap_free(struct axmap *bm); 10 11 void axmap_clear(struct axmap *axmap, uint64_t bit_nr); 12 void axmap_set(struct axmap *axmap, uint64_t bit_nr); 13 unsigned int axmap_set_nr(struct axmap *axmap, uint64_t bit_nr, unsigned int nr_bits); 14 bool axmap_isset(struct axmap *axmap, uint64_t bit_nr); 15 uint64_t axmap_next_free(struct axmap *axmap, uint64_t bit_nr); 16 void axmap_reset(struct axmap *axmap); 17 18 #endif 19