code: mafs

ref: 0b55bc315e748a6f3b855a6611eab059729a748f
dir: /fns.h/

View raw version

u8	rel2tind(u64 reli);

/* actual device i/o routines */
u64	devinit(char *devfile);
int	devread(u64 blkno, void *b, u16 len);
u64	devsize(void);
int	devwrite(u64 blkno, void *b, u16 len);
int devwritedirtyclear(u64 blkno);

/* show blocks */
void	showblock(u8 *buf);
void	showdentry(u8 *buf);
void	showmagic(u8 *buf);
void	showconfig(u8 *buf);
void	showsuper(u8 *buf);
void	showdata(u8 *buf);
void	showind0(u8 *buf);
void	showind(u8 *buf);

void	panic(char*, ...);
int	fprint(int, char*, ...);