xv6/fs.h File Reference

Go to the source code of this file.

Data Structures

struct  superblock
struct  dinode
struct  dirent

Defines

#define ROOTINO   1
#define BSIZE   512
#define NDIRECT   12
#define NINDIRECT   (BSIZE / sizeof(uint))
#define MAXFILE   (NDIRECT + NINDIRECT)
#define IPB   (BSIZE / sizeof(struct dinode))
#define IBLOCK(i)   ((i) / IPB + 2)
#define BPB   (BSIZE*8)
#define BBLOCK(b, ninodes)   (b/BPB + (ninodes)/IPB + 3)
#define DIRSIZ   14


Define Documentation

#define BBLOCK ( b,
ninodes   )     (b/BPB + (ninodes)/IPB + 3)

Definition at line 42 of file fs.h.

Referenced by balloc(), and bfree().

#define BPB   (BSIZE*8)

Definition at line 39 of file fs.h.

Referenced by balloc(), and bfree().

#define BSIZE   512

Definition at line 9 of file fs.h.

Referenced by bzero(), dirlookup(), main(), readi(), and writei().

#define DIRSIZ   14

Definition at line 45 of file fs.h.

Referenced by create(), dirlink(), fmtname(), ls(), main(), namecmp(), namei(), skipelem(), sys_link(), and sys_unlink().

#define IBLOCK (  )     ((i) / IPB + 2)

Definition at line 36 of file fs.h.

Referenced by ialloc(), ilock(), and iupdate().

#define IPB   (BSIZE / sizeof(struct dinode))

Definition at line 33 of file fs.h.

Referenced by balloc(), i2b(), ialloc(), ilock(), iupdate(), main(), rinode(), and winode().

#define MAXFILE   (NDIRECT + NINDIRECT)

Definition at line 20 of file fs.h.

Referenced by iappend(), writei(), and writetest1().

#define NDIRECT   12

Definition at line 18 of file fs.h.

Referenced by bmap(), iappend(), and itrunc().

#define NINDIRECT   (BSIZE / sizeof(uint))

Definition at line 19 of file fs.h.

Referenced by bmap(), iappend(), and itrunc().

#define ROOTINO   1

Definition at line 8 of file fs.h.

Referenced by main(), and namex().


Generated on Fri Jan 7 12:25:49 2011 for xv6 by  doxygen 1.5.6