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 --- file.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'file.h') diff --git a/file.h b/file.h index 15d6b78..d864793 100644 --- a/file.h +++ b/file.h @@ -1,9 +1,9 @@ struct file { - enum { FD_CLOSED, FD_NONE, FD_PIPE, FD_FILE } type; + enum { FD_CLOSED, FD_NONE, FD_PIPE, FD_INODE } type; int ref; // reference count char readable; char writable; struct pipe *pipe; - struct inode *ip; + struct uinode *ip; uint off; }; -- cgit v1.2.3