xv6-cs450/file.h
2009-05-31 02:07:51 +00:00

9 lines
178 B
C

struct file {
enum { FD_NONE, FD_PIPE, FD_INODE } type;
int ref; // reference count
char readable;
char writable;
struct pipe *pipe;
struct inode *ip;
uint off;
};