buddy_system_operations Struct Reference
[generic]


Data Fields

link_t *(* find_buddy )(buddy_system_t *, link_t *)
link_t *(* bisect )(buddy_system_t *, link_t *)
link_t *(* coalesce )(buddy_system_t *, link_t *, link_t *)
void(* set_order )(buddy_system_t *, link_t *, __u8)
__u8(* get_order )(buddy_system_t *, link_t *)
void(* mark_busy )(buddy_system_t *, link_t *)
void(* mark_available )(buddy_system_t *, link_t *)
link_t *(* find_block )(buddy_system_t *, link_t *, __u8)
void(* print_id )(buddy_system_t *, link_t *)

Detailed Description

Buddy system operations to be implemented by each implementation.

Definition at line 44 of file buddy.h.


Field Documentation

link_t*(* bisect)(buddy_system_t *, link_t *)
 

Bisect the block passed as argument and return pointer to the new right-side buddy.

Referenced by buddy_system_alloc(), buddy_system_alloc_block(), and buddy_system_create().

link_t*(* coalesce)(buddy_system_t *, link_t *, link_t *)
 

Coalesce two buddies into a bigger block.

Referenced by buddy_system_create().

link_t*(* find_block)(buddy_system_t *, link_t *, __u8)
 

Find parent of block that has given order

Referenced by buddy_system_alloc_block().

link_t*(* find_buddy)(buddy_system_t *, link_t *)
 

Return pointer to left-side or right-side buddy for block passed as argument.

Referenced by buddy_system_create(), and buddy_system_free().

__u8(* get_order)(buddy_system_t *, link_t *)
 

Return order of block passed as argument.

Referenced by buddy_system_alloc_block(), buddy_system_create(), and buddy_system_free().

void(* mark_available)(buddy_system_t *, link_t *)
 

Mark block as available.

Referenced by buddy_system_alloc_block().

void(* mark_busy)(buddy_system_t *, link_t *)
 

Mark block as busy.

Referenced by buddy_system_alloc(), buddy_system_alloc_block(), and buddy_system_create().

void(* print_id)(buddy_system_t *, link_t *)
 

void(* set_order)(buddy_system_t *, link_t *, __u8)
 

Set order of block passed as argument.

Referenced by buddy_system_alloc(), buddy_system_alloc_block(), and buddy_system_create().


Generated on Sun Jun 18 17:30:31 2006 for HelenOS Kernel (ppc64) by  doxygen 1.4.6