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

A single directory entry. More...

Data Fields

block_sector_t inode_sector
 Sector number of header. More...
 
char name [NAME_MAX+1]
 Null terminated file name. More...
 
bool in_use
 In use or free? More...
 

Detailed Description

A single directory entry.

Definition at line 17 of file directory.c.

Field Documentation

◆ in_use

bool dir_entry::in_use

In use or free?

Definition at line 21 of file directory.c.

Referenced by dir_add(), dir_readdir(), dir_remove(), and lookup().

◆ inode_sector

block_sector_t dir_entry::inode_sector

Sector number of header.

Definition at line 19 of file directory.c.

Referenced by dir_add(), dir_lookup(), and dir_remove().

◆ name

char dir_entry::name[NAME_MAX+1]

Null terminated file name.

Definition at line 20 of file directory.c.

Referenced by dir_add(), dir_readdir(), and lookup().


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