ID Allocator (id_space)
include/structures/id_space.h View source View on GitHubStructs
Section titled “Structs”id_range
Section titled “id_range” struct id_range (4 fields) source
id_space
Section titled “id_space” struct id_space (4 fields) source
Functions
Section titled “Functions”id_space_init
Section titled “id_space_init”id_space_destroy
Section titled “id_space_destroy”id_space_alloc
Section titled “id_space_alloc”id_space_free
Section titled “id_space_free”id_space_alloc_range
Section titled “id_space_alloc_range”id_space_free_range
Section titled “id_space_free_range”Macros
Section titled “Macros”ID_RANGE_RESERVE_COUNT
Section titled “ID_RANGE_RESERVE_COUNT”#define ID_RANGE_RESERVE_COUNT 128 source ID_SPACE_INIT
Section titled “ID_SPACE_INIT”#define ID_SPACE_INIT source Expansion
#define ID_SPACE_INIT \
(struct id_space) { \
.reserve_free = NULL \
}