#include <buddy.h>
Public Member Functions | |
LIST_ENTRY (buddy_list) next_freelist | |
LIST_ENTRY (buddy_list) next_freelist |
Data Fields | |
uint32_t | size |
purpose_t | use |
char | padding [(32 - 2 *sizeof(void *) - sizeof(uint32_t) - sizeof(purpose_t))] |
Metadata about this particular block (and stored at the beginning of this block). One per allocated block of memory. Should be 32 bytes to not screw up alignment.
buddy_list::LIST_ENTRY | ( | buddy_list | ) |
buddy_list::LIST_ENTRY | ( | buddy_list | ) |
References BUDDY_ALIGN_PREF, padding, size, and use.
char buddy_list::padding |
Definition at line 28 of file buddy.h.
Referenced by LIST_ENTRY().
uint32_t buddy_list::size |
Definition at line 26 of file buddy.h.
Referenced by buddy_free(), buddy_split(), buddy_try_merge(), create_buddy_table(), dump_buddy_table(), and LIST_ENTRY().
purpose_t buddy_list::use |
Definition at line 27 of file buddy.h.
Referenced by buddy_alloc(), buddy_free(), buddy_split(), buddy_try_merge(), create_buddy_table(), dump_buddy_table(), and LIST_ENTRY().