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

VFS context structure. More...

#include <vfs_ctx.h>

Data Fields

path_t cwd
 
file_tfiles [CONFIG_MAX_FD]
 
bitmap_t allocBitmap
 Bitmap tracking allocated file descriptors.
 
uint64_t allocBitmapBuffer [BITMAP_BITS_TO_QWORDS(CONFIG_MAX_FD)]
 
lock_t lock
 
bool initalized
 

Detailed Description

VFS context structure.

TODO: Implement bitmap based fd tracking.

Definition at line 30 of file vfs_ctx.h.

Field Documentation

◆ allocBitmap

bitmap_t vfs_ctx_t::allocBitmap

Bitmap tracking allocated file descriptors.

Definition at line 34 of file vfs_ctx.h.

Referenced by vfs_ctx_alloc_fd(), vfs_ctx_dup(), vfs_ctx_dup2(), vfs_ctx_free_fd(), vfs_ctx_init(), and vfs_ctx_set_fd().

◆ allocBitmapBuffer

uint64_t vfs_ctx_t::allocBitmapBuffer[BITMAP_BITS_TO_QWORDS(CONFIG_MAX_FD)]

Definition at line 35 of file vfs_ctx.h.

Referenced by vfs_ctx_init().

◆ cwd

path_t vfs_ctx_t::cwd

Definition at line 32 of file vfs_ctx.h.

Referenced by vfs_ctx_deinit(), vfs_ctx_get_cwd(), vfs_ctx_init(), and vfs_ctx_set_cwd().

◆ files

◆ initalized

◆ lock


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