当前仅显示指定条件回帖 [ 展开查看全部 ]
文件名称:
writeproc.md
所在目录:
Openharmony v1.0 / docs / docs-en / kernel
文件大小:
3.61 KB
下载地址:
文本预览:
# writeproc
## Command Function
This command is used to write data to a specified proc file system. The proc file system supports the input of string parameters. Each file needs to implement its own method.
## Syntax
writeproc <_data_\> \>\> /proc/<_filename_\>
## Parameter Description
**Table 1** Parameters
## Usage
The proc file implements its own **write** command. After the **writeproc** command is called, the input parameter will be passed to the **write** command.
> **NOTE:**
>The proc file system does not support multi-thread access.
## Example
Enter **writeproc test \>\> /proc/uptime**.
## Output
OHOS \# writeproc test \>\> /proc/uptime
\[INFO\]write buf is: test
test \>\> /proc/uptime
> **NOTE:**
>The uptime proc file temporarily implements the **write** command. The **INFO** log is generated by the implemented **test** command.
## Command Function
This command is used to write data to a specified proc file system. The proc file system supports the input of string parameters. Each file needs to implement its own method.
## Syntax
writeproc <_data_\> \>\> /proc/<_filename_\>
## Parameter Description
**Table 1** Parameters
Indicates the string to be entered, which ends with a space. If you need to enter a space, use "" to enclose the space. | ||
Indicates the proc file to which data is to be passed. |
## Usage
The proc file implements its own **write** command. After the **writeproc** command is called, the input parameter will be passed to the **write** command.
> **NOTE:**
>The proc file system does not support multi-thread access.
## Example
Enter **writeproc test \>\> /proc/uptime**.
## Output
OHOS \# writeproc test \>\> /proc/uptime
\[INFO\]write buf is: test
test \>\> /proc/uptime
> **NOTE:**
>The uptime proc file temporarily implements the **write** command. The **INFO** log is generated by the implemented **test** command.
点赞
回复
X