Changeset 085d973 in mainline for generic/include/mm/buddy.h


Ignore:
Timestamp:
2006-02-08T12:34:05Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5e3757d
Parents:
eb1b8b6
Message:

Cleanup o frame allocator.
Removed early_malloc & initial heap.
Will break ia64, ppc & sparc.
Added e820 table print.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/include/mm/buddy.h

    reb1b8b6 r085d973  
    4343        __u8 (*get_order)(buddy_system_t *, link_t *);                  /**< Return order of block passed as argument. */
    4444        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);
    4548};
    4649
     
    5255};
    5356
    54 extern buddy_system_t *buddy_system_create(__u8 max_order, buddy_system_operations_t *op, void *data);
     57extern void buddy_system_create(buddy_system_t *b,
     58                                __u8 max_order,
     59                                buddy_system_operations_t *op, void *data);
    5560extern link_t *buddy_system_alloc(buddy_system_t *b, __u8 i);
    5661extern bool buddy_system_can_alloc(buddy_system_t *b, __u8 order);
    5762extern void buddy_system_free(buddy_system_t *b, link_t *block);
    5863extern void buddy_system_structure_print(buddy_system_t *b, size_t elem_size);
     64extern size_t buddy_conf_size(int max_order);
     65extern link_t *buddy_system_alloc_block(buddy_system_t *b, link_t *block);
    5966
    6067#endif
Note: See TracChangeset for help on using the changeset viewer.