结构体 | |
struct | ProcFileOperations |
真正最后能操作pro file的接口,proc本质是个内存文件系统, vfs - > ProcFileOperations 更多... | |
struct | ProcDirEntry |
proc 目录/文件项, @notethinking 直接叫 ProcEntry不香吗 ? 操作 /proc的 真正结构体 更多... | |
struct | ProcFile |
Proc文件结构体,对标 FILE 结构体 更多... | |
struct | ProcStat |
struct | ProcData |
类型定义 | |
typedef unsigned short | fmode_t |
函数 | |
struct ProcDirEntry * | CreateProcEntry (const char *name, mode_t mode, struct ProcDirEntry *parent) |
create a proc node 更多... | |
void | RemoveProcEntry (const char *name, struct ProcDirEntry *parent) |
remove a proc node 更多... | |
struct ProcDirEntry * | ProcMkdir (const char *name, struct ProcDirEntry *parent) |
create a proc directory node 更多... | |
struct ProcDirEntry * | ProcCreate (const char *name, mode_t mode, struct ProcDirEntry *parent, const struct ProcFileOperations *procFops) |
create a proc node 更多... | |
void | ProcFsInit (void) |
init proc fs 更多... | |
struct ProcDirEntry * CreateProcEntry | ( | const char * | name, |
mode_t | mode, | ||
struct ProcDirEntry * | parent | ||
) |
create a proc node
Interface for modules using proc below internal proc moudule;
name | [IN] Type #const char * The name of the node to be created. |
mode | [IN] Type mode_t the mode of create's node. |
parent | [IN] Type #struct ProcDirEntry * the parent node of the node to be created, if pass NULL, default parent node is "/proc". |
#NULL | Create failed. |
#ProcDirEntry* | Create successfully. |
create a proc node
在文件 proc_file.c 第 364 行定义.
struct ProcDirEntry * ProcCreate | ( | const char * | name, |
mode_t | mode, | ||
struct ProcDirEntry * | parent, | ||
const struct ProcFileOperations * | procFops | ||
) |
create a proc node
name | [IN] Type #const char * The name of the node to be created. |
mode | [IN] Type mode_t the mode of create's node. |
parent | [IN] Type #struct ProcDirEntry * the parent node of the node to be created. |
procFops | [IN] Type #const struct ProcFileOperations * operation function of the node. |
#NULL | Create failed. |
#ProcDirEntry* | Create successfully. |
在文件 proc_file.c 第 457 行定义.
init proc fs
NONE |
NONE |
在文件 proc_init.c 第 43 行定义.
struct ProcDirEntry * ProcMkdir | ( | const char * | name, |
struct ProcDirEntry * | parent | ||
) |
create a proc directory node
name | [IN] Type #const char * The name of the node directory to be created. |
parent | [IN] Type #struct ProcDirEntry * the parent node of the directory node to be created, if pass NULL, default parent node is "/proc". |
#NULL | Create failed. |
#ProcDirEntry* | Create successfully. |
在文件 proc_file.c 第 439 行定义.
void RemoveProcEntry | ( | const char * | name, |
struct ProcDirEntry * | parent | ||
) |
remove a proc node
name | [IN] Type #const char * The name of the node to be removed. |
parent | [IN] Type #struct ProcDirEntry * the parent node of the node to be remove. |
在文件 proc_file.c 第 405 行定义.