shithub: riscv

ref: 260d1eaaa73a377fb7b0cfc00707ddba35a54ccd
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*);