Changeset 328f2934 in mainline for generic/include/mm/buddy.h


Ignore:
Timestamp:
2005-12-04T19:37:13Z (20 years ago)
Author:
Sergey Bondari <bondari@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cf585c9
Parents:
d7ac642
Message:

Buddy allocator for physical memory complete implementation.
Tested on IA32, AMD64, MIPS32. RWLock Test #5 is not passed.
NOTE: Other architectures could be broken (but should not be)

File:
1 edited

Legend:

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

    rd7ac642 r328f2934  
    4242        void (*set_order)(buddy_system_t *, link_t *, __u8);            /**< Set order of block passed as argument. */
    4343        __u8 (*get_order)(buddy_system_t *, link_t *);                  /**< Return order of block passed as argument. */
     44        void (*mark_busy)(buddy_system_t *, link_t *);                  /**< Mark block as busy */
    4445};
    4546
     
    5354extern buddy_system_t *buddy_system_create(__u8 max_order, buddy_system_operations_t *op, void *data);
    5455extern link_t *buddy_system_alloc(buddy_system_t *b, __u8 i);
     56extern bool buddy_system_can_alloc(buddy_system_t *b, __u8 order);
    5557extern void buddy_system_free(buddy_system_t *b, link_t *block);
    5658
Note: See TracChangeset for help on using the changeset viewer.