Changeset 085d973 in mainline for generic/include/mm/buddy.h
- Timestamp:
- 2006-02-08T12:34:05Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5e3757d
- Parents:
- eb1b8b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/mm/buddy.h
reb1b8b6 r085d973 43 43 __u8 (*get_order)(buddy_system_t *, link_t *); /**< Return order of block passed as argument. */ 44 44 void (*mark_busy)(buddy_system_t *, link_t *); /**< Mark block as busy */ 45 void (*mark_available)(buddy_system_t *, link_t *); /**< Mark block as busy */ 46 /** Find parent of block that has given order */ 47 link_t *(* find_block)(buddy_system_t *, link_t *, __u8); 45 48 }; 46 49 … … 52 55 }; 53 56 54 extern buddy_system_t *buddy_system_create(__u8 max_order, buddy_system_operations_t *op, void *data); 57 extern void buddy_system_create(buddy_system_t *b, 58 __u8 max_order, 59 buddy_system_operations_t *op, void *data); 55 60 extern link_t *buddy_system_alloc(buddy_system_t *b, __u8 i); 56 61 extern bool buddy_system_can_alloc(buddy_system_t *b, __u8 order); 57 62 extern void buddy_system_free(buddy_system_t *b, link_t *block); 58 63 extern void buddy_system_structure_print(buddy_system_t *b, size_t elem_size); 64 extern size_t buddy_conf_size(int max_order); 65 extern link_t *buddy_system_alloc_block(buddy_system_t *b, link_t *block); 59 66 60 67 #endif
Note:
See TracChangeset
for help on using the changeset viewer.