44 unsigned int old_num_blocks;
45 unsigned int new_num_blocks;
52 if ( old_num_blocks != new_num_blocks ) {
53 new_size = ( new_num_blocks *
sizeof (
bitmap->
blocks[0] ) );
56 DBGC (
bitmap,
"Bitmap %p could not resize to %d "
57 "bits\n",
bitmap, new_length );
64 while ( old_num_blocks < new_num_blocks ) {
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.
Bitmaps for multicast downloads.
#define BITMAP_MASK(bit)
Block mask within bitmap.
#define BITMAP_INDEX(bit)
Block index within bitmap.
#define BITMAP_BLKSIZE
Size of a block of bits (in bits)
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 ENOMEM
Not enough space.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
static unsigned int unsigned int bit
void * realloc(void *old_ptr, size_t new_size)
Reallocate memory.
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.