AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
ext2_dentry Struct Reference

A directory entry, as it is on the disk. More...

#include <ext2.h>

Data Fields

uint32_t ino
 inode number
uint16_t size
 entry total size
uint8_t length
 name length
uint8_t type
 entry type
uint8_t name [0]
 the name follows (not NUL-terminated)

Detailed Description

A directory entry, as it is on the disk.

0 as the inode number is an unused entry; size is the distance to the next entry.

Definition at line 142 of file ext2.h.

Field Documentation

◆ ino

uint32_t ext2_dentry::ino

◆ length

uint8_t ext2_dentry::length

name length

Definition at line 148 of file ext2.h.

Referenced by dentry_update(), ext2_dentry_create(), ext2_dentry_find(), ext2_readdir(), and ext2_vmknod().

◆ name

uint8_t ext2_dentry::name[0]

the name follows (not NUL-terminated)

Definition at line 152 of file ext2.h.

Referenced by dentry_update(), ext2_dentry_create(), ext2_dentry_find(), ext2_readdir(), and ext2_vmknod().

◆ size

uint16_t ext2_dentry::size

entry total size

Definition at line 146 of file ext2.h.

Referenced by dentry_remove(), dentry_update(), ext2_dentry_create(), ext2_dentry_find(), ext2_readdir(), and ext2_vmknod().

◆ type

uint8_t ext2_dentry::type

entry type

Definition at line 150 of file ext2.h.

Referenced by ext2_dentry_create(), and ext2_vmknod().


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