PatchworkOS
Loading...
Searching...
No Matches
stat_t Struct Reference

Stat type. More...

#include <io.h>

Data Fields

inode_number_t number
 The number of the entries inode.
 
inode_type_t type
 The type of the entries inode.
 
uint64_t size
 The size of the file that is visible outside the filesystem.
 
uint64_t blocks
 The amount of blocks used on disk to store the file.
 
uint64_t linkAmount
 The amount of times the inode appears in dentries.
 
time_t accessTime
 Unix time stamp for the last inode access.
 
time_t modifyTime
 Unix time stamp for last file content alteration.
 
time_t changeTime
 Unix time stamp for the last file metadata alteration.
 
time_t createTime
 Unix time stamp for the creation of the inode.
 
char name [MAX_NAME]
 The name of the entry, not the full filepath.
 
uint8_t padding [64]
 Padding to leave space for future expansion.
 

Detailed Description

Stat type.

Definition at line 359 of file io.h.

Field Documentation

◆ accessTime

time_t stat_t::accessTime

Unix time stamp for the last inode access.

Definition at line 366 of file io.h.

Referenced by print_stat().

◆ blocks

uint64_t stat_t::blocks

The amount of blocks used on disk to store the file.

Definition at line 364 of file io.h.

Referenced by print_stat().

◆ changeTime

time_t stat_t::changeTime

Unix time stamp for the last file metadata alteration.

Definition at line 368 of file io.h.

Referenced by print_stat().

◆ createTime

time_t stat_t::createTime

Unix time stamp for the creation of the inode.

Definition at line 369 of file io.h.

Referenced by print_stat().

◆ linkAmount

uint64_t stat_t::linkAmount

The amount of times the inode appears in dentries.

Definition at line 365 of file io.h.

Referenced by print_stat().

◆ modifyTime

time_t stat_t::modifyTime

Unix time stamp for last file content alteration.

Definition at line 367 of file io.h.

Referenced by print_stat().

◆ name

char stat_t::name[MAX_NAME]

The name of the entry, not the full filepath.

Definition at line 370 of file io.h.

Referenced by print_stat().

◆ number

inode_number_t stat_t::number

The number of the entries inode.

Definition at line 361 of file io.h.

Referenced by print_stat().

◆ padding

uint8_t stat_t::padding[64]

Padding to leave space for future expansion.

Definition at line 371 of file io.h.

◆ size

uint64_t stat_t::size

The size of the file that is visible outside the filesystem.

Definition at line 363 of file io.h.

Referenced by print_stat().

◆ type

inode_type_t stat_t::type

The type of the entries inode.

Definition at line 362 of file io.h.

Referenced by print_stat().


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