加入收藏
举报
02-14 20:03
#0
文件名称:
writeproc.md
所在目录:
Openharmony v1.0 / docs / docs-en / kernel
文件大小:
3.61 KB
下载地址:
fenwii/OpenHarmony
   
免责声明:本网站仅提供指向 GitHub 上的文件的链接,所有文件的版权归原作者所有,本网站不对文件内容的合法性、准确性或安全性承担任何责任。
文本预览:
# 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















Parameter


Description


Value Range


data


Indicates the string to be entered, which ends with a space. If you need to enter a space, use "" to enclose the space.


N/A


filename


Indicates the proc file to which data is to be passed.


N/A



## 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.
>![](public_sys-resources/icon-note.gif) **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
>![](public_sys-resources/icon-note.gif) **NOTE:**
>The uptime proc file temporarily implements the **write** command. The **INFO** log is generated by the implemented **test** command.
点赞 回复
回帖
支持markdown部分语法 ?