Changeset 80bcaed in mainline for kernel/generic/include/mm/buddy.h
- Timestamp:
- 2007-02-03T13:22:24Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f619ec11
- Parents:
- fa8e7d2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/mm/buddy.h
rfa8e7d2 r80bcaed 45 45 /** Buddy system operations to be implemented by each implementation. */ 46 46 typedef struct { 47 /** Return pointer to left-side or right-side buddy for block passed as 48 * argument. */ 47 /** 48 * Return pointer to left-side or right-side buddy for block passed as 49 * argument. 50 */ 49 51 link_t *(* find_buddy)(struct buddy_system *, link_t *); 50 /** Bisect the block passed as argument and return pointer to the new 51 * right-side buddy. */ 52 /** 53 * Bisect the block passed as argument and return pointer to the new 54 * right-side buddy. 55 */ 52 56 link_t *(* bisect)(struct buddy_system *, link_t *); 53 57 /** Coalesce two buddies into a bigger block. */ … … 76 80 77 81 extern void buddy_system_create(buddy_system_t *b, uint8_t max_order, 78 82 buddy_system_operations_t *op, void *data); 79 83 extern link_t *buddy_system_alloc(buddy_system_t *b, uint8_t i); 80 84 extern bool buddy_system_can_alloc(buddy_system_t *b, uint8_t order);
Note:
See TracChangeset
for help on using the changeset viewer.