|
PatchworkOS
|
VFS context structure. More...
#include <vfs_ctx.h>
Data Fields | |
| path_t | cwd |
| file_t * | files [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 |
VFS context structure.
TODO: Implement bitmap based fd tracking.
| 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().
| 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().
| 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().
| file_t* vfs_ctx_t::files[CONFIG_MAX_FD] |
Definition at line 33 of file vfs_ctx.h.
Referenced by vfs_ctx_alloc_fd(), vfs_ctx_deinit(), vfs_ctx_dup(), vfs_ctx_dup2(), vfs_ctx_free_fd(), vfs_ctx_get_file(), vfs_ctx_init(), and vfs_ctx_set_fd().
| bool vfs_ctx_t::initalized |
Definition at line 37 of file vfs_ctx.h.
Referenced by vfs_ctx_alloc_fd(), vfs_ctx_deinit(), vfs_ctx_dup(), vfs_ctx_dup2(), vfs_ctx_free_fd(), vfs_ctx_get_cwd(), vfs_ctx_get_file(), vfs_ctx_init(), vfs_ctx_set_cwd(), and vfs_ctx_set_fd().
| lock_t vfs_ctx_t::lock |
Definition at line 36 of file vfs_ctx.h.
Referenced by vfs_ctx_alloc_fd(), vfs_ctx_deinit(), vfs_ctx_dup(), vfs_ctx_dup2(), vfs_ctx_free_fd(), vfs_ctx_get_cwd(), vfs_ctx_get_file(), vfs_ctx_init(), vfs_ctx_set_cwd(), and vfs_ctx_set_fd().