minix/servers/vm/yielded.h
2010-10-15 09:10:14 +00:00

27 lines
430 B
C

#ifndef _YIELDED_H
#define _YIELDED_H 1
#include <minix/type.h>
typedef struct block_id {
u64_t id;
endpoint_t owner;
} block_id_t;
typedef struct yielded {
/* the owner-given id and owner together
* uniquely identify a yielded block.
*/
block_id_t id;
phys_bytes addr, len;
/* LRU fields */
struct yielded *younger, *older;
/* AVL fields */
struct yielded *less, *greater;
int factor;
} yielded_t;
#endif