|
iPXE
|
Bitmaps for multicast downloads. More...
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| int | bitmap_resize (struct bitmap *bitmap, unsigned int new_length) |
| Resize bitmap. More... | |
| int | bitmap_test (struct bitmap *bitmap, unsigned int bit) |
| Test bit in bitmap. More... | |
| void | bitmap_set (struct bitmap *bitmap, unsigned int bit) |
| Set bit in bitmap. More... | |
Bitmaps for multicast downloads.
Definition in file bitmap.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| int bitmap_resize | ( | struct bitmap * | bitmap, |
| unsigned int | new_length | ||
| ) |
Resize bitmap.
| bitmap | Bitmap |
| new_length | New length of bitmap, in bits |
| rc | Return status code |
Definition at line 42 of file bitmap.c.
References BITMAP_BLKSIZE, BITMAP_INDEX, bitmap::blocks, DBGC, ENOMEM, bitmap::length, and realloc().
Referenced by slam_open(), slam_pull_header(), and tftp_presize().
| int bitmap_test | ( | struct bitmap * | bitmap, |
| unsigned int | bit | ||
| ) |
Test bit in bitmap.
| bitmap | Bitmap |
| bit | Bit index |
| is_set | Bit is set |
Definition at line 78 of file bitmap.c.
References bit, BITMAP_INDEX, BITMAP_MASK, bitmap::blocks, index, and bitmap::length.
Referenced by bitmap_set(), slam_mc_socket_deliver(), and slam_tx_nack().
| void bitmap_set | ( | struct bitmap * | bitmap, |
| unsigned int | bit | ||
| ) |
Set bit in bitmap.
| bitmap | Bitmap |
| bit | Bit index |
Definition at line 93 of file bitmap.c.
References bit, BITMAP_INDEX, BITMAP_MASK, bitmap_test(), bitmap::blocks, DBGC, bitmap::first_gap, and index.
Referenced by slam_mc_socket_deliver(), and tftp_rx_data().
1.8.15