Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1138 → Rev 1139

/kernel/trunk/generic/include/synch/futex.h
37,9 → 37,9
 
/** Kernel-side futex structure. */
struct futex {
__address paddr; /** Physical address of the status variable. */
waitq_t wq; /** Wait queue for threads waiting for futex availability. */
link_t ht_link; /** Futex hash table link. */
__address paddr; /**< Physical address of the status variable. */
waitq_t wq; /**< Wait queue for threads waiting for futex availability. */
link_t ht_link; /**< Futex hash table link. */
};
 
extern void futex_init(void);
/kernel/trunk/generic/include/arch.h
45,7 → 45,7
/**
* For each possible kernel stack, structure
* of the following type will be placed at
* the bottom of the stack.
* the base address of the stack.
*/
struct the {
count_t preemption_disabled; /**< Preemption disabled counter. */
/kernel/trunk/generic/include/mm/buddy.h
34,7 → 34,7
 
#define BUDDY_SYSTEM_INNER_BLOCK 0xff
 
/** Buddy system operations to be implemented by each implementations. */
/** Buddy system operations to be implemented by each implementation. */
struct buddy_system_operations {
link_t *(* find_buddy)(buddy_system_t *, link_t *); /**< Return pointer to left-side or right-side buddy for block passed as argument. */
link_t *(* bisect)(buddy_system_t *, link_t *); /**< Bisect the block passed as argument and return pointer to the new right-side buddy. */
42,7 → 42,7
void (*set_order)(buddy_system_t *, link_t *, __u8); /**< Set order of block passed as argument. */
__u8 (*get_order)(buddy_system_t *, link_t *); /**< Return order of block passed as argument. */
void (*mark_busy)(buddy_system_t *, link_t *); /**< Mark block as busy */
void (*mark_available)(buddy_system_t *, link_t *); /**< Mark block as busy */
void (*mark_available)(buddy_system_t *, link_t *); /**< Mark block as busy */
/** Find parent of block that has given order */
link_t *(* find_block)(buddy_system_t *, link_t *, __u8);
void (* print_id)(buddy_system_t *, link_t *);