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

An open file. More...

Collaboration diagram for file:
Collaboration graph
[legend]

Data Fields

struct inodeinode
 File's inode. More...
 
off_t pos
 Current position. More...
 
bool deny_write
 Has file_deny_write() been called? More...
 

Detailed Description

An open file.

Definition at line 7 of file file.c.

Field Documentation

◆ deny_write

bool file::deny_write

Has file_deny_write() been called?

Definition at line 11 of file file.c.

Referenced by file_allow_write(), file_deny_write(), and file_open().

◆ inode

struct inode* file::inode

◆ pos

off_t file::pos

Current position.

Definition at line 10 of file file.c.

Referenced by file_open(), file_read(), file_seek(), file_tell(), file_write(), and fsutil_cat().


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