shithub: riscv

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