file Struct Reference

#include <file.h>


Public Types

enum  { FD_NONE, FD_PIPE, FD_INODE }

Data Fields

enum file:: { ... }  type
int ref
char readable
char writable
struct pipepipe
struct inodeip
uint off


Detailed Description

Definition at line 1 of file file.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
FD_NONE 
FD_PIPE 
FD_INODE 

Definition at line 2 of file file.h.


Field Documentation

enum { ... } file::type

int file::ref

Definition at line 3 of file file.h.

Referenced by filealloc(), fileclose(), and filedup().

Definition at line 4 of file file.h.

Referenced by fileread(), and sys_open().

Definition at line 5 of file file.h.

Referenced by fileclose(), filewrite(), and sys_open().

struct pipe* file::pipe [read]

Definition at line 6 of file file.h.

Referenced by fileclose(), fileread(), and filewrite().

struct inode* file::ip [read]

Definition at line 7 of file file.h.

Referenced by fileclose(), fileread(), filestat(), filewrite(), and sys_open().

Definition at line 8 of file file.h.

Referenced by fileread(), filewrite(), and sys_open().


The documentation for this struct was generated from the following file:

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