Rev 1760 | Rev 1767 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1760 | Rev 1766 | ||
---|---|---|---|
Line 87... | Line 87... | ||
87 | #define IS_BUDDY_LEFT_BLOCK(zone, frame) (((frame_index((zone), (frame)) >> (frame)->buddy_order) & 0x1) == 0) |
87 | #define IS_BUDDY_LEFT_BLOCK(zone, frame) (((frame_index((zone), (frame)) >> (frame)->buddy_order) & 0x1) == 0) |
88 | #define IS_BUDDY_RIGHT_BLOCK(zone, frame) (((frame_index((zone), (frame)) >> (frame)->buddy_order) & 0x1) == 1) |
88 | #define IS_BUDDY_RIGHT_BLOCK(zone, frame) (((frame_index((zone), (frame)) >> (frame)->buddy_order) & 0x1) == 1) |
89 | #define IS_BUDDY_LEFT_BLOCK_ABS(zone, frame) (((frame_index_abs((zone), (frame)) >> (frame)->buddy_order) & 0x1) == 0) |
89 | #define IS_BUDDY_LEFT_BLOCK_ABS(zone, frame) (((frame_index_abs((zone), (frame)) >> (frame)->buddy_order) & 0x1) == 0) |
90 | #define IS_BUDDY_RIGHT_BLOCK_ABS(zone, frame) (((frame_index_abs((zone), (frame)) >> (frame)->buddy_order) & 0x1) == 1) |
90 | #define IS_BUDDY_RIGHT_BLOCK_ABS(zone, frame) (((frame_index_abs((zone), (frame)) >> (frame)->buddy_order) & 0x1) == 1) |
91 | 91 | ||
92 | #define frame_alloc(order, flags) frame_alloc_generic(order, flags, NULL, NULL) |
92 | #define frame_alloc(order, flags) frame_alloc_generic(order, flags, NULL) |
93 | #define frame_alloc_rc(order, flags, status) frame_alloc_generic(order, flags, status, NULL) |
- | |
94 | #define frame_alloc_rc_zone(order, flags, status, zone) frame_alloc_generic(order, flags, status, zone) |
- | |
95 | 93 | ||
96 | extern void frame_init(void); |
94 | extern void frame_init(void); |
97 | extern void * frame_alloc_generic(__u8 order, int flags, int * status, int *pzone); |
95 | extern void * frame_alloc_generic(__u8 order, int flags, int *pzone); |
98 | extern void frame_free(__address frame); |
96 | extern void frame_free(__address frame); |
99 | extern void frame_reference_add(pfn_t pfn); |
97 | extern void frame_reference_add(pfn_t pfn); |
100 | 98 | ||
101 | extern int zone_create(pfn_t start, count_t count, pfn_t confframe, int flags); |
99 | extern int zone_create(pfn_t start, count_t count, pfn_t confframe, int flags); |
102 | void * frame_get_parent(pfn_t frame, int hint); |
100 | void * frame_get_parent(pfn_t frame, int hint); |