From eaea18cb9cbb86018dae8f1decfa217ecbe85fa5 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 22 Aug 2007 06:01:32 +0000 Subject: PDF at http://am.lcs.mit.edu/~rsc/xv6.pdf Various changes made while offline. + bwrite sector argument is redundant; use b->sector. + reformatting of files for nicer PDF page breaks + distinguish between locked, unlocked inodes in type signatures + change FD_FILE to FD_INODE + move userinit (nee proc0init) to proc.c + move ROOTDEV to param.h + always parenthesize sizeof argument --- fsvar.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'fsvar.h') diff --git a/fsvar.h b/fsvar.h index 8609c2a..f823c66 100644 --- a/fsvar.h +++ b/fsvar.h @@ -14,7 +14,11 @@ struct inode { uint addrs[NADDRS]; }; -#define ROOTDEV 1 // Device number of root file system +// unlocked inode - only dev and inum are available +struct uinode { + uint dev; + uint inum; +}; #define I_BUSY 0x1 #define I_VALID 0x2 -- cgit v1.2.3