|
Basic Solution File System - BSFS
|
Represents an open file in memory within the BSFS file system. More...
#include <filesystem_bsfs.h>
Public Attributes | |
| inode_t | inode |
| uint32_t | pos |
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.
| inode_t file_t::inode |
The inode associated with the open file. Contains metadata such as size, permissions, block pointers, and timestamps.
| 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.