Basic Solution File System - BSFS
Loading...
Searching...
No Matches
file_t Struct Reference

Represents an open file in memory within the BSFS file system. More...

#include <filesystem_bsfs.h>

Public Attributes

inode_t inode
uint32_t pos

Detailed Description

Represents an open file in memory within the BSFS file system.

This structure holds a snapshot of a file's inode and a cursor position, allowing sequential or random access for read/write operations. It serves as a file descriptor for open files at runtime.

Member Data Documentation

◆ inode

inode_t file_t::inode

The inode associated with the open file. Contains metadata such as size, permissions, block pointers, and timestamps.

◆ pos

uint32_t file_t::pos

Current position (in bytes) within the file for reading or writing. This field is updated by seek, read, and write operations.


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