shithub: riscv

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