This is a simple buddy system allocation scheme.
All of the metadata about the memory chunk (e.g., its size and whether it's currently being used) is stored at the beginning of that block of memory.
You can initialize it by calling create_buddy_table()
and passing in the desired power of two.
For example, passing in 16 will create a buddy system of 2^16 = 65,536 bytes.
If it returns NULL
then the buddy system was unable to allocate enough memory.
-
Notifications
You must be signed in to change notification settings - Fork 1
Buddy system allocator
License
laprej/buddy-allocator
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Buddy system allocator
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published