21#define BITMAP_BLKSIZE ( sizeof ( bitmap_block_t ) * 8 )
29#define BITMAP_INDEX( bit ) ( (bit) / BITMAP_BLKSIZE )
37#define BITMAP_MASK( bit ) ( 1UL << ( (bit) % BITMAP_BLKSIZE ) )
static void bitmap_free(struct bitmap *bitmap)
Free bitmap resources.
static unsigned int bitmap_first_gap(struct bitmap *bitmap)
Get first gap within bitmap.
int bitmap_test(struct bitmap *bitmap, unsigned int bit)
Test bit in bitmap.
int bitmap_resize(struct bitmap *bitmap, unsigned int new_length)
Resize bitmap.
void bitmap_set(struct bitmap *bitmap, unsigned int bit)
Set bit in bitmap.
static int bitmap_full(struct bitmap *bitmap)
Check to see if bitmap is full.
unsigned long bitmap_block_t
A single block of bits within a bitmap.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
static unsigned int unsigned int bit
static void(* free)(struct refcnt *refcnt))
unsigned int first_gap
Index of first gap in the bitmap.
unsigned int length
Length of the bitmap, in bits.
bitmap_block_t * blocks
Bitmap data.