AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
buddy.h File Reference
#include <core/system.h>
#include <ds/bitmap.h>

Go to the source code of this file.

Data Structures

struct  buddy
 One order of a buddy allocator's zone (mm/buddy.c): a bitmap of its blocks, a set bit for a block that isn't free. More...

Macros

#define BUDDY_IDX(idx)

Macro Definition Documentation

◆ BUDDY_IDX

#define BUDDY_IDX ( idx)
Value:
((idx) ^ 0x1)

Definition at line 17 of file buddy.h.

Referenced by buddy_recursive_alloc(), and buddy_recursive_free().