shithub: riscv

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