#include <fd_table.h>
成员变量 | |
int | count |
持有的文件数量 更多... | |
struct fd_table_s * | fdt |
持有的文件表 更多... | |
unsigned int | file_lock |
文件互斥锁 更多... | |
unsigned int | next_fd |
下一个fd 更多... | |
spinlock_t | workdir_lock |
工作区目录自旋锁 更多... | |
char | workdir [PATH_MAX] |
工作区路径,最大 256个字符 更多... | |
注:系统描述符的使用情况也是用bitmap管理见于 ..\third_party\third_party_NuttX\fs\inode\fs_files.c 进程文件表结构体 ,进程对文件操作在内存的表现 files_struct 为 进程 process->files 字段,包含一个进程的所有和VFS相关的内容
在文件 fd_table.h 第 93 行定义.
int files_struct::count |
持有的文件数量
在文件 fd_table.h 第 94 行定义.
struct fd_table_s* files_struct::fdt |
持有的文件表
在文件 fd_table.h 第 95 行定义.
unsigned int files_struct::file_lock |
文件互斥锁
在文件 fd_table.h 第 96 行定义.
unsigned int files_struct::next_fd |
下一个fd
在文件 fd_table.h 第 97 行定义.
char files_struct::workdir[PATH_MAX] |
工作区路径,最大 256个字符
在文件 fd_table.h 第 100 行定义.
spinlock_t files_struct::workdir_lock |
工作区目录自旋锁
在文件 fd_table.h 第 99 行定义.