WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
osal_proc

函数

void osal_proc_init (const char *name)
 Create a directory in /proc.
 
void osal_proc_exit (const char *name)
 Delete the directory created by osal_proc_init() and all the files in the directory.
 
void osal_remove_proc_entry (const char *name, osal_proc_entry *parent)
 Delete the file created by the function osal_create_proc_entry.
 
osal_proc_entryosal_create_proc_entry (const char *name, osal_proc_entry *parent)
 Create a file in the directory created by the function osal_proc_init.
 

详细描述

函数说明

◆ osal_create_proc_entry()

osal_proc_entry * osal_create_proc_entry ( const char *  name,
osal_proc_entry parent 
)

Create a file in the directory created by the function osal_proc_init.

Description:
Create a file in the directory created by the function osal_proc_init.
参数
name[in] Name of the directory to be created.
parent[in] Reserved parameter, not used for now.
返回
osal_proc_entry*, parent directory of the file to be created. Generally, it stands for "/proc/xxx", where xxx is the first parameter of osal_proc_init.
Support System:
linux liteos.

◆ osal_proc_exit()

void osal_proc_exit ( const char *  name)

Delete the directory created by osal_proc_init() and all the files in the directory.

Description:
Delete the directory created by osal_proc_init() and all the files in the directory.
参数
name[in] Name of the directory to be deleted, created by osal_proc_init().
Support System:
linux liteos.

◆ osal_proc_init()

void osal_proc_init ( const char *  name)

Create a directory in /proc.

Description:
Create a directory in /proc.
注意
This interface should be invoked only once. That is, in the /proc directory, you can only have one directory created by yourself at the same time.
参数
name[in] Name of the directory to be created.
Support System:
linux liteos.

◆ osal_remove_proc_entry()

void osal_remove_proc_entry ( const char *  name,
osal_proc_entry parent 
)

Delete the file created by the function osal_create_proc_entry.

Description:
Delete the file created by the function osal_create_proc_entry.
参数
name[in] The file name, same as the first parameter of osal_create_proc_entry.
parent[in] osal_proc_entry*, returned by the osal_create_proc_entry.
Support System:
linux liteos.