Changeset 4e147a6 in mainline for generic/include/mm/frame.h


Ignore:
Timestamp:
2006-02-02T01:51:25Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9ea8a7ca
Parents:
b5e0bb8
Message:

Skeleton of SLAB allocator.

File:
1 edited

Legend:

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

    rb5e0bb8 r4e147a6  
    3636#include <synch/spinlock.h>
    3737#include <mm/buddy.h>
     38#include <mm/slab.h>
    3839
    3940#define ONE_FRAME       0
     
    4142#define FRAME_KA                1       /* skip frames conflicting with user address space */
    4243#define FRAME_PANIC             2       /* panic on failure */
    43 #define FRAME_NON_BLOCKING      4       /* do not panic and do not sleep on failure */
     44#define FRAME_ATOMIC            4       /* do not panic and do not sleep on failure */
    4445
    4546#define FRAME_OK                0       /* frame_alloc return status */
     
    7879        __u8 buddy_order;       /**< buddy system block order */
    7980        link_t buddy_link;      /**< link to the next free block inside one order */
     81        slab_slab_t *slab;      /**< If allocated by slab, this points there */
    8082};
    8183
Note: See TracChangeset for help on using the changeset viewer.