buddy_chunk
struct buddy_chunk __arena *next;
struct buddy_chunk __arena *first_chunk; /* Pointer to the chunk linked list. */
int idx_set_allocated(struct buddy_chunk __arena *chunk, u64 idx, bool allocated)
static int idx_is_allocated(struct buddy_chunk __arena *chunk, u64 idx, bool *allocated)
int idx_set_order(struct buddy_chunk __arena *chunk, u64 idx, u8 order)
static u8 idx_get_order(struct buddy_chunk __arena *chunk, u64 idx)
static void __arena *idx_to_addr(struct buddy_chunk __arena *chunk, size_t idx)
static struct buddy_header __arena *idx_to_header(struct buddy_chunk __arena *chunk, size_t idx)
static void header_add_freelist(struct buddy_chunk __arena *chunk, struct buddy_header __arena *header,
static void header_remove_freelist(struct buddy_chunk __arena *chunk,
int add_leftovers_to_freelist(struct buddy_chunk __arena *chunk, u32 cur_idx,
static struct buddy_chunk __arena *buddy_chunk_get(struct buddy __arena *buddy)
struct buddy_chunk __arena *chunk;
struct buddy_chunk __arena *chunk;
struct buddy_chunk __arena *chunk, *next;
__weak u64 buddy_chunk_alloc(struct buddy_chunk __arena *chunk, int order_req)
struct buddy_chunk __arena *chunk;
static u64 buddy_alloc_from_new_chunk(struct buddy __arena *buddy, struct buddy_chunk __arena *chunk, int order)
struct buddy_chunk __arena *chunk;
struct buddy_chunk __arena *chunk;