函数 | |
struct ProcDirEntry * | OpenProcFile (const char *fileName, int flags,...) |
open a proc node 更多... | |
int | ReadProcFile (struct ProcDirEntry *pde, void *buf, size_t len) |
read a proc node 更多... | |
int | WriteProcFile (struct ProcDirEntry *pde, const void *buf, size_t len) |
write a proc node 更多... | |
loff_t | LseekProcFile (struct ProcDirEntry *pde, loff_t offset, int whence) |
File migration 更多... | |
int | LseekDirProcFile (struct ProcDirEntry *pde, off_t *pos, int whence) |
directory migration 更多... | |
int | CloseProcFile (struct ProcDirEntry *pde) |
close a proc node 更多... | |
struct ProcDirEntry * | GetProcRootEntry (void) |
int | ProcOpen (struct ProcFile *procFile) |
打开 pro 更多... | |
int CloseProcFile | ( | struct ProcDirEntry * | pde | ) |
close a proc node
pde | [IN] Type #struct ProcDirEntry * pointer of the node structure to be closed |
#-1 | close failed |
#0 | close successfully |
在文件 proc_file.c 第 663 行定义.
struct ProcDirEntry * GetProcRootEntry | ( | void | ) |
int LseekDirProcFile | ( | struct ProcDirEntry * | pde, |
off_t * | pos, | ||
int | whence | ||
) |
directory migration
pde | [IN] Type #struct ProcDirEntry * pointer of the node structure to be deviated |
pos | [IN] Type #off_t * the number of deviation |
whence | [IN] Type int the begin of deviation |
#EINVAL | deviation failed |
#ENOERR | deviation successfully |
在文件 proc_file.c 第 652 行定义.
loff_t LseekProcFile | ( | struct ProcDirEntry * | pde, |
loff_t | offset, | ||
int | whence | ||
) |
File migration
pde | [IN] Type #struct ProcDirEntry * pointer of the node structure to be deviation |
offset | [IN] Type #loff_t the number of deviation |
whence | [IN] Type int the begin of deviation |
#<0 | deviation failed |
#>=0 | deviation successfully |
File migration
在文件 proc_file.c 第 622 行定义.
struct ProcDirEntry * OpenProcFile | ( | const char * | fileName, |
int | flags, | ||
... | |||
) |
open a proc node
fileName | [IN] Type #const char * the fileName of the node to be opened |
flags | [IN] Type int the flags of open's node |
#NULL | open failed |
#NOT | NULL open successfully |
在文件 proc_file.c 第 553 行定义.
int ReadProcFile | ( | struct ProcDirEntry * | pde, |
void * | buf, | ||
size_t | len | ||
) |
read a proc node
pde | [IN] Type #struct ProcDirEntry * pointer of the node structure to be read |
buf | [IN] Type void * user-provided to save the data |
len | [IN] Type size_t the length of want to read |
#-1 | read failed |
#>0 | Number of bytes read success |
在文件 proc_file.c 第 584 行定义.
int WriteProcFile | ( | struct ProcDirEntry * | pde, |
const void * | buf, | ||
size_t | len | ||
) |
write a proc node
pde | [IN] Type #struct ProcDirEntry * pointer of the node structure to be written |
buf | [IN] Type #const void * data to write |
len | [IN] Type size_t length of data to write |
#-1 | write failed |
#>0 | Number of bytes write successfully |
write a proc node
在文件 proc_file.c 第 601 行定义.