PKUOS - Pintos
Pintos source browser for PKU Operating System course
Data Fields
inode Struct Reference

In-memory inode. More...

Collaboration diagram for inode:
Collaboration graph
[legend]

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...
 

Detailed Description

In-memory inode.

Definition at line 32 of file inode.c.

Field Documentation

◆ data

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().

◆ deny_write_cnt

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().

◆ elem

struct list_elem inode::elem

Element in inode list.

Definition at line 34 of file inode.c.

Referenced by inode_close(), and inode_open().

◆ open_cnt

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().

◆ removed

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().

◆ sector

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().


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