函数 | |
void | FileTableLock (struct fd_table_s *fdt) |
对进程文件表操作上锁 更多... | |
void | FileTableUnLock (struct fd_table_s *fdt) |
对进程文件表操作解锁 更多... | |
static int | AssignProcessFd (const struct fd_table_s *fdt, int minFd) |
分配进程描述符 更多... | |
struct fd_table_s * | GetFdTable (void) |
获取进程文件描述符表 更多... | |
static bool | IsValidProcessFd (struct fd_table_s *fdt, int procFd) |
void | AssociateSystemFd (int procFd, int sysFd) |
参数进程FD和参数系统FD进行绑定(关联) 更多... | |
int | CheckProcessFd (int procFd) |
int | GetAssociatedSystemFd (int procFd) |
获取绑定的系统描述符 更多... | |
int | AllocSpecifiedProcessFd (int procFd) |
void | FreeProcessFd (int procFd) |
释放进程文件描述符 更多... | |
int | DisassociateProcessFd (int procFd) |
解绑系统文件描述符,返回系统文件描述符 更多... | |
int | AllocProcessFd (void) |
分配文件描述符 更多... | |
int | AllocLowestProcessFd (int minFd) |
分配文件描述符,从3号开始 更多... | |
int | AllocAndAssocProcessFd (int sysFd, int minFd) |
分配和绑定进程描述符 更多... | |
int | AllocAndAssocSystemFd (int procFd, int minFd) |
分配和绑定系统描述符 更多... | |
static void | FdRefer (int sysFd) |
进程FD引用数改变 更多... | |
static void | FdClose (int sysFd, unsigned int targetPid) |
关闭FD 更多... | |
static struct fd_table_s * | GetProcessFTable (unsigned int pid, sem_t *semId) |
获取参数进程FD表 更多... | |
int | CopyFdToProc (int fd, unsigned int targetPid) |
拷贝一个进程FD给指定的进程,使两个进程的FD都指向同一个系统FD 更多... | |
int | CloseProcFd (int procFd, unsigned int targetPid) |
关闭进程FD 更多... | |
分配和绑定进程描述符
在文件 vfs_procfd.c 第 261 行定义.
分配和绑定系统描述符
在文件 vfs_procfd.c 第 290 行定义.
|
static |
关闭进程FD
在文件 vfs_procfd.c 第 431 行定义.
关闭FD
在文件 vfs_procfd.c 第 327 行定义.
进程FD引用数改变
在文件 vfs_procfd.c 第 310 行定义.
void FileTableLock | ( | struct fd_table_s * | fdt | ) |
void FileTableUnLock | ( | struct fd_table_s * | fdt | ) |
struct fd_table_s * GetFdTable | ( | void | ) |
获取进程文件描述符表
在文件 vfs_procfd.c 第 77 行定义.
|
static |
|
static |