File:  [XINU] / xinu / h / iblock.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:39:12 2018 UTC (8 years, 3 months ago) by root
Branches: xinu, MAIN
CVS tags: xinu-19910600, HEAD
Xinu for 68000/68010

/* iblock.h - ibtodb, ibdisp */

typedef	short		IBADDR;		/* iblocks addressed 0,1,2,...	*/

#define	IBLEN		29		/* # d-block ptrs in an i-block	*/
#define	IBNULL		(IBADDR) -1	/* null pointer in i-block list	*/
#define	IBAREA		1		/* start of iblocks on disk	*/
#define	IBWDIR		TRUE		/* ibnew: write directory	*/
#define	IBNWDIR		FALSE		/* ibnew: don't write directory	*/

struct	iblk		{		/* index block layout		*/
	long		ib_byte;	/* first data byte indexed by	*/
					/*  this index block		*/
	IBADDR		ib_next;	/* address of next i-block	*/
	DBADDR		ib_dba[IBLEN];	/* ptrs to data blocks indexed	*/
};

#define	ibtodb(ib)	(((ib)>>3)+IBAREA)/* iblock to disk block addr.	*/
#define	ibdisp(ib)	(((ib)&07)*sizeof(struct iblk))

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.