shithub: riscv

ref: 3a77c01f43821dcc4f7cae54aff89bb20f2d95a5
dir: /sys/src/cmd/cfs/lru.h/

View raw version
typedef	struct Lruhead	Lruhead;
typedef struct Lru	Lru;

struct Lru
{
	Lru	*lprev;
	Lru	*lnext;
};

void	lruinit(Lru*);
void	lruadd(Lru*, Lru*);
void	lruref(Lru*, Lru*);
void	lruderef(Lru*, Lru*);