code: mafs

ref: 5c21eca829380c28769f79beabb7cc51f1787f97
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*, ...);