Changeset 2ec725f in mainline for kernel/generic/include/mm/buddy.h
- Timestamp:
- 2008-07-06T18:20:02Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5f7a0ef
- Parents:
- 000350f8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/mm/buddy.h
r000350f8 r2ec725f 67 67 /** Find parent of block that has given order */ 68 68 link_t *(* find_block)(struct buddy_system *, link_t *, uint8_t); 69 void (* print_id)(struct buddy_system *, link_t *);70 69 } buddy_system_operations_t; 71 70 … … 79 78 } buddy_system_t; 80 79 81 extern void buddy_system_create(buddy_system_t *b, uint8_t max_order, 82 buddy_system_operations_t *op, void *data); 83 extern link_t *buddy_system_alloc(buddy_system_t *b, uint8_t i); 84 extern bool buddy_system_can_alloc(buddy_system_t *b, uint8_t order); 85 extern void buddy_system_free(buddy_system_t *b, link_t *block); 86 extern void buddy_system_structure_print(buddy_system_t *b, size_t elem_size); 87 extern size_t buddy_conf_size(int max_order); 88 extern link_t *buddy_system_alloc_block(buddy_system_t *b, link_t *block); 80 extern void buddy_system_create(buddy_system_t *, uint8_t, 81 buddy_system_operations_t *, void *); 82 extern link_t *buddy_system_alloc(buddy_system_t *, uint8_t); 83 extern bool buddy_system_can_alloc(buddy_system_t *, uint8_t); 84 extern void buddy_system_free(buddy_system_t *, link_t *); 85 extern size_t buddy_conf_size(int); 86 extern link_t *buddy_system_alloc_block(buddy_system_t *, link_t *); 89 87 90 88 #endif
Note:
See TracChangeset
for help on using the changeset viewer.