!225 update openKylin+SDK开发指南V2.0

Merge pull request !225 from szm-min/master
This commit is contained in:
moshengren 2023-05-19 06:39:51 +00:00 committed by Gitee
commit 65fd47e6d0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 4 additions and 4 deletions

View File

@ -852,9 +852,9 @@ target_link_libraries(kyrtinfo-test kyrtinfo)
| 子模块 | 编程语言 | 声明 | 描述 |
|--------|------|-------------------------------------------------------|-------------|
| 获取资源信息 | C | extern char* kdk_get_process_start_time(int proc_num) | 获取指定进程的启动时间 |
| 获取资源信息 | C | extern char* kdk_get_process_running_time(int proc_num) | 获取指定进程的运行时间 |
| | | 参数说明 | 返回值说明 | |
| | | proc_num进程号 | char* 启动时间 |
| | | proc_num进程号 | char* 运行时间 |
@ -966,7 +966,7 @@ target_link_libraries(kysysinfo-test kysysinfo)
|--------|------|----------------------------------------------------|----------------|
| 获取系统基础信息 | C | extern char* kdk_system_get_kernelVersion() | 获取内核版本号 |
| | | 参数说明 | 返回值说明 | |
| | | 无 | char* | 内核版本号 | |
| | | 无 | char* 成功返回字符串失败返回NULL。返回的字符串需要被 free 释放 | 内核版本号 | |
获取当前登录用户的用户名
| 子模块 | 编程语言 | 声明 | 描述 |
@ -2632,7 +2632,7 @@ target_link_libraries(kylog-testpressure kylog)
|-----|------|-------------------------------------------------|---------------------------------------------------------|
| 日志 | C | extern int kdk_logger_setdir(const char* dpath) | 设置日志的存储目录若不设置非root程序会被记录在~/.log下root程序会被记录在/var/log下 |
| | | 参数说明 | 返回值说明 | |
| | | dpath日志存储路径 | int | 成功返回0失败返回-1 |
| | | dpath日志存储路径 | int 成功返回0失败返回-1 |