Changeset f275cb3 in mainline for generic/include/mm/frame.h


Ignore:
Timestamp:
2006-01-08T16:35:41Z (19 years ago)
Author:
Sergey Bondari <bondari@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b2c92f33
Parents:
677a6d5
Message:

Frame alloc test #1

File:
1 edited

Legend:

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

    r677a6d5 rf275cb3  
    3939#define ONE_FRAME       0
    4040
    41 #define FRAME_KA        1       /* skip frames conflicting with user address space */
    42 #define FRAME_PANIC     2       /* panic on failure */
     41#define FRAME_KA                1       /* skip frames conflicting with user address space */
     42#define FRAME_PANIC             2       /* panic on failure */
     43#define FRAME_NON_BLOCKING      4       /* do not panic and do not sleep on failure */
     44
     45#define FRAME_OK                0       /* frame_alloc return status */
     46#define FRAME_NO_MEMORY         1       /* frame_alloc return status */
     47#define FRAME_ERROR             2       /* frame_alloc return status */
    4348
    4449#define FRAME2ADDR(zone, frame)                 ((zone)->base + ((frame) - (zone)->frames) * FRAME_SIZE)
     
    8994extern void frame_init(void);
    9095extern void frame_initialize(frame_t *frame, zone_t *zone);
    91 __address frame_alloc(int flags, __u8 order);
     96
     97__address frame_alloc(int flags, __u8 order, int * status);
    9298extern void frame_free(__address addr);
     99
    93100zone_t * get_zone_by_frame(frame_t * frame);
    94101
Note: See TracChangeset for help on using the changeset viewer.