minix/servers/vm/yielded.h
Ben Gras ddf1981004 VM: restore >4k secondary cache functionality
. by storing length in the yielded blocks node again
2012-09-18 13:17:52 +02:00

28 lines
442 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 physaddr;
int pages;
/* LRU fields */
struct yielded *younger, *older;
/* AVL fields */
struct yielded *less, *greater;
int factor;
} yielded_t;
#endif