PKUOS - Pintos
Pintos source browser for PKU Operating System course
|
In-memory inode. More...
Data Fields | |
struct list_elem | elem |
Element in inode list. More... | |
block_sector_t | sector |
Sector number of disk location. More... | |
int | open_cnt |
Number of openers. More... | |
bool | removed |
True if deleted, false otherwise. More... | |
int | deny_write_cnt |
0: writes ok, >0: deny writes. More... | |
struct inode_disk | data |
Inode content. More... | |
struct inode_disk inode::data |
Inode content.
Definition at line 39 of file inode.c.
Referenced by byte_to_sector(), inode_close(), inode_length(), and inode_open().
int inode::deny_write_cnt |
0: writes ok, >0: deny writes.
Definition at line 38 of file inode.c.
Referenced by inode_allow_write(), inode_deny_write(), inode_open(), and inode_write_at().
struct list_elem inode::elem |
Element in inode list.
Definition at line 34 of file inode.c.
Referenced by inode_close(), and inode_open().
int inode::open_cnt |
Number of openers.
Definition at line 36 of file inode.c.
Referenced by inode_allow_write(), inode_close(), inode_deny_write(), inode_open(), and inode_reopen().
bool inode::removed |
True if deleted, false otherwise.
Definition at line 37 of file inode.c.
Referenced by inode_close(), inode_open(), and inode_remove().
block_sector_t inode::sector |
Sector number of disk location.
Definition at line 35 of file inode.c.
Referenced by inode_close(), inode_get_inumber(), and inode_open().