forked from openkylin/docs
更新翻译
Signed-off-by: jlspcdd1227dd <12046126+jlspcdd1227dd@user.noreply.gitee.com>
This commit is contained in:
parent
36fe134558
commit
683e18a019
|
@ -513,58 +513,58 @@ target_link_libraries(kyboard-test kyhw)
|
|||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|------------------------------------------|---------------------|
|
||||
| get disk information | C | extern const char *kdk_board_get_name(); | 获取主板产品名称 |
|
||||
| get disk information | C | extern const char *kdk_board_get_name(); | Get motherboard product name |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | 成功返回主板产品名称,失败返回null |
|
||||
| | | 无 | Successfully returns the product name of the mainboard, and fails to return null |
|
||||
|
||||
|
||||
|
||||
获取主板生产日期
|
||||
Get the motherboard production date
|
||||
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|------------------------------------------|---------------------|
|
||||
| get disk information | C | extern const char *kdk_board_get_date(); | 获取主板生产日期 |
|
||||
| get disk information | C | extern const char *kdk_board_get_date(); | Get the motherboard production date |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | 成功返回主板生产日期,失败返回null |
|
||||
| | | 无 | If it succeeds, it will return the production date of the motherboard, if it fails, it will return null |
|
||||
|
||||
|
||||
获取主板序列号
|
||||
Get the motherboard serial number
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|--------------------------------------------|--------------------|
|
||||
| get disk information | C | extern const char *kdk_board_get_serial(); | 获取主板序列号 |
|
||||
| get disk information | C | extern const char *kdk_board_get_serial(); | Get the motherboard serial number |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | 成功返回主板序列号,失败返回null |
|
||||
| | | 无 | Returns the serial number of the motherboard successfully, and returns null if it fails |
|
||||
|
||||
|
||||
获取主板厂商信息
|
||||
Obtain motherboard manufacturer information
|
||||
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|--------------------------------------------|---------------------|
|
||||
| get disk information | C | extern const char *kdk_board_get_vendor(); | 获取主板厂商信息 |
|
||||
| get disk information | C | extern const char *kdk_board_get_vendor(); | Obtain motherboard manufacturer information |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | 成功返回主板厂商信息,失败返回null |
|
||||
| | | 无 | Successfully returns motherboard manufacturer information, fails to return null |
|
||||
|
||||
|
||||
|
||||
释放内存
|
||||
free memory
|
||||
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|-----------------------------------------|---------------|
|
||||
| get disk information | C | extern void kdk_board_free(char* info); | 释放获取信息接口申请的内存 |
|
||||
| get disk information | C | extern void kdk_board_free(char* info); | Release the memory requested by the information acquisition interface |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 获取信息接口返回的指针 | 无 |
|
||||
| | | Get the pointer returned by the information interface | 无 |
|
||||
|
||||
|
||||
|
||||
#### 3.1.2.6 获取 usb 设备信息
|
||||
#### 3.1.2.6 Get usb device information
|
||||
|
||||
封装 C 接口获取到 usb 设备硬件信息。
|
||||
Encapsulate the C interface to obtain the hardware information of the usb device.
|
||||
|
||||
(1)CMakeLists.txt 构建项目
|
||||
(1) CMakeLists.txt build project
|
||||
```
|
||||
aux_source_directory(. SOURCESCODE)
|
||||
include_directories(.)
|
||||
|
@ -573,41 +573,41 @@ add_executable(kyusb-test test/kyusb-test.c)
|
|||
target_link_libraries(kyhw kylog kyconf pthread systemd udev)
|
||||
target_link_libraries(kyusb-test kyhw)
|
||||
```
|
||||
(2)获取 usb 设备信息,需要添加头文件:
|
||||
(2)To obtain usb device information, you need to add header files:
|
||||
|
||||
```
|
||||
#include "kysdk/kysdk-system/libkyusbinfo.h"
|
||||
```
|
||||
获取所有 usb 设备信息
|
||||
get all usb device information
|
||||
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|--------------------------------------------|----------------------------------------|
|
||||
| get disk information | C | extern pDriverInfoList kdk_usb_get_list(); | 获取usb设备信息 |
|
||||
| get disk information | C | extern pDriverInfoList kdk_usb_get_list(); | Get usb device information |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | pDriverInfoList : usb设备信息的结构体指针,具体信息自取 |
|
||||
| | | 无 | pDriverInfoList : The structure pointer of the usb device information, the specific information is self-obtained |
|
||||
|
||||
释放内存
|
||||
free memory
|
||||
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|-------------------------------------------------|--------------|
|
||||
| get disk information | C | extern void kdk_usb_free(pDriverInfoList list); | 释放获取信息时申请的内存 |
|
||||
| get disk information | C | extern void kdk_usb_free(pDriverInfoList list); | Release the memory allocated when obtaining information |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | list:kdk_usb_get_list()返回的指针 | 无 |
|
||||
| | | list:kdk_usb_get_list()return pointer | 无 |
|
||||
|
||||
|
||||
|
||||
### **3.1.3** 获取包列表信息
|
||||
### **3.1.3** Get package list information
|
||||
|
||||
封装 C 接口获取系统中所有的包信息。
|
||||
Encapsulates the C interface to obtain all package information in the system.
|
||||
|
||||
|
||||
```
|
||||
$ sudo apt-get install libkysdk-package libkysdk-package-dev
|
||||
```
|
||||
|
||||
(1)CMakeLists.txt 构建项目
|
||||
(1)CMakeLists.txt build project
|
||||
|
||||
```
|
||||
aux_source_directory(. SOURCESCODE)
|
||||
|
@ -616,33 +616,33 @@ add_library(kypackage SHARED ${SOURCESCODE})
|
|||
add_executable(kypackage-test test/kypackage-test.c)
|
||||
target_link_libraries(kypackage-test kypackage)
|
||||
```
|
||||
(2)获取包列表信息,需要添加头文件:
|
||||
(2)Get package list information, you need to add header files:
|
||||
```
|
||||
#include "kysdk/kysdk-system/libkypackages.h"
|
||||
```
|
||||
获取系统中所有包列表
|
||||
Get a list of all packages in the system
|
||||
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|---------|------|--------------------------------------------------------|----------------------------------------------------------------------|
|
||||
| 获取包列表信息 | C | extern kdk_package_list* kdk_package_get_packagelist() | 获取系统中所有包列表 |
|
||||
| Get package list information | C | extern kdk_package_list* kdk_package_get_packagelist() | Get a list of all packages in the system |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | kdk_package_list* 包describe结构体列表;返回的结构体需要由kdk_package_free_packagelist()回收 |
|
||||
| | | 无 | kdk_package_list* package describe structure list; the returned structure needs to be recycled by kdk_package_free_packagelist() |
|
||||
|
||||
|
||||
|
||||
获取系统中指定包的版本号
|
||||
Get the version number of the specified package in the system
|
||||
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|---------|------|--------------------------------------------------------|---------------------------------------------|
|
||||
| 获取包列表信息 | C | extern char* kdk_package_get_version(const char *name) | 获取系统中指定包的版本号 |
|
||||
| Get package list information | C | extern char* kdk_package_get_version(const char *name) | Get the version number of the specified package in the system |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | name:软件包名 | char* 版本号,由alloc生成,需要被free;若给定的包不存在,则返回NULL |
|
||||
| | | name:package name | char* version number, generated by alloc, needs to be free; if the given package does not exist, return NULL |
|
||||
|
||||
|
||||
|
||||
检测指定包名的软件包是否正确安装
|
||||
Check whether the package with the specified package name is installed correctly
|
||||
|
||||
|
||||
<table style="width: auto;"><tbody><tr><td colSpan="1" rowSpan="1" width="67">submodule</td><td colSpan="1" rowSpan="1" width="81">Programming language</td><td colSpan="2" rowSpan="1" width="313">statement</td><td colSpan="1" rowSpan="1" width="94">describe</td></tr><tr><td colSpan="1" rowSpan="3" width="67">获取包列表信息</td><td colSpan="1" rowSpan="3" width="81">C</td><td colSpan="2" rowSpan="1" width="313">extern int kdk_package_is_installed(const char *name, const char *version)</td><td colSpan="1" rowSpan="1" width="94">检测指定包名的软件包是否正确安装</td></tr><tr><td colSpan="1" rowSpan="1" width="137">Parameter Description</td><td colSpan="1" rowSpan="1" width="176">Return value description</td><td colSpan="1" rowSpan="1" width="94"></td></tr><tr><td colSpan="1" rowSpan="1" width="137">name:软件包名version:版本号,大部分情况下为NULL,预留为snap做准备</td><td colSpan="1" rowSpan="1" width="176">int 成功返回0,失败返回错误码</td><td colSpan="1" rowSpan="1" width="94"></td></tr></tbody></table>
|
||||
|
@ -650,7 +650,7 @@ target_link_libraries(kypackage-test kypackage)
|
|||
|
||||
### **3.1.4** Get resource information
|
||||
|
||||
封装 C 接口获取到内存、swap 分区、cpu 的使用率。
|
||||
Encapsulate the C interface to obtain the usage rate of memory, swap partition, and cpu.
|
||||
|
||||
|
||||
```
|
||||
|
@ -659,7 +659,7 @@ $ sudo apt-get install libkysdk-proc libkysdk-proc-dev
|
|||
```
|
||||
|
||||
|
||||
(1)CMakeLists.txt 构建项目
|
||||
(1)CMakeLists.txt build project
|
||||
```
|
||||
aux_source_directory(. SOURCESCODE)
|
||||
include_directories(.)
|
||||
|
@ -667,212 +667,212 @@ add_library(kyrtinfo SHARED ${SOURCESCODE})
|
|||
add_executable(kyrtinfo-test test/kyrtinfo-test.c)
|
||||
target_link_libraries(kyrtinfo-test kyrtinfo)
|
||||
```
|
||||
(2)获取包列表信息,需要添加头文件:
|
||||
(2)Get package list information, you need to add header files:
|
||||
```
|
||||
#include "kysdk/kysdk-system/libkyrtinfo.h"
|
||||
```
|
||||
获取系统中物理内存总大小
|
||||
Get the total size of physical memory in the system
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|------------------------------------------------------|-----------------------------|
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_res_total_KiB() | 获取系统中物理内存总大小 |
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_res_total_KiB() | Get the total size of physical memory in the system |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | unsigned long 物理内存大小,KiB为单位 |
|
||||
| | | 无 | unsigned long Physical memory size, in KiB |
|
||||
|
||||
|
||||
|
||||
获取物理内存使用率
|
||||
Get physical memory usage
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|--------------------------------------------------|---------------|
|
||||
| Get resource information | C | extern float kdk_rti_get_mem_res_usage_percent() | 获取物理内存使用率 |
|
||||
| Get resource information | C | extern float kdk_rti_get_mem_res_usage_percent() | Get physical memory usage |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | float 物理内存使用率 |
|
||||
| | | 无 | float physical memory usage |
|
||||
|
||||
|
||||
|
||||
获取物理内存使用大小
|
||||
Get the physical memory usage size
|
||||
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|------------------------------------------------------|------------------------------------|
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_res_usage_KiB() | 获取物理内存使用大小,注意Buffer/Cache被计算为已使用内存 |
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_res_usage_KiB() | Get the size of physical memory usage, note that Buffer/Cache is calculated as used memory |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | unsigned long 物理内存使用大小,KiB为单位 |
|
||||
| | | 无 | unsigned long Physical memory usage size, in KiB |
|
||||
|
||||
|
||||
|
||||
获取实际可用的物理内存大小
|
||||
Get the actual available physical memory size
|
||||
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|----------------------------------------------------------|-------------------------------------------|
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_res_available_KiB() | 获取实际可用的物理内存大小,该数值约等于Free + Buffer + Cache |
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_res_available_KiB() | Get the actual available physical memory size,This value is approximately equal to Free + Buffer + Cache |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | unsigned long 可用物理内存大小,KiB为单位 |
|
||||
| | | 无 | unsigned long Available physical memory size, in KiB |
|
||||
|
||||
|
||||
|
||||
获取实际空闲的物理内存大小
|
||||
Get the actual free physical memory size
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|-----------------------------------------------------|---------------------------------------|
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_res_free_KiB() | 获取实际空闲的物理内存大小,注意Buffer/Cache被计算为已使用内存 |
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_res_free_KiB() | Get the actual free physical memory size,Note that Buffer/Cache is counted as used memory |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | unsigned long 空闲的物理内存大小,KiB为单位 |
|
||||
| | | 无 | unsigned long Free physical memory size, in KiB |
|
||||
|
||||
|
||||
获取所有应用申请的虚拟内存总量
|
||||
Get the total amount of virtual memory requested by all applications
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|-------------------------------------------------------|-------------------------------|
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_virt_alloc_KiB() | 获取所有应用申请的虚拟内存总量 |
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_virt_alloc_KiB() | Get the total amount of virtual memory requested by all applications |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | unsigned long 虚拟内存总申请量,KiB为单位 |
|
||||
| | | 无 | unsigned long The total application amount of virtual memory, in KiB |
|
||||
|
||||
|
||||
获取系统中 Swap 分区总大小
|
||||
Get the total size of the Swap partition in the system
|
||||
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|-------------------------------------------------------|-------------------------------|
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_swap_total_KiB() | 获取系统中Swap分区总大小 |
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_swap_total_KiB() | Get the total size of the Swap partition in the system |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | unsigned long Swap分区大小,KiB为单位 |
|
||||
| | | 无 | unsigned long SwapPartition size, in KiB |
|
||||
|
||||
|
||||
|
||||
获取 Swap 分区使用率
|
||||
Get Swap partition usage
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|---------------------------------------------------|-----------------|
|
||||
| Get resource information | C | extern float kdk_rti_get_mem_swap_usage_percent() | 获取Swap分区使用率 |
|
||||
| Get resource information | C | extern float kdk_rti_get_mem_swap_usage_percent() | Get Swap partition usage |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | float Swap分区使用率 |
|
||||
| | | 无 | float Swap Partition usage |
|
||||
|
||||
|
||||
|
||||
获取 Swap 分区使用量
|
||||
Get Swap partition usage
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|-------------------------------------------------------|--------------------------------|
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_swap_usage_KiB() | 获取Swap分区使用量 |
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_swap_usage_KiB() | Get Swap partition usage |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | unsigned long Swap分区使用量,KiB为单位 |
|
||||
| | | 无 | unsigned long Swap partition usage, in KiB |
|
||||
|
||||
|
||||
|
||||
获取 Swap 分区空闲大小
|
||||
Get free size of Swap partition
|
||||
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|------------------------------------------------------|---------------------------------|
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_swap_free_KiB() | 获取Swap分区空闲大小 |
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_swap_free_KiB() | Get free size of Swap partition |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | unsigned long Swap分区空闲大小,KiB为单位 |
|
||||
| | | 无 | unsigned long Swap partition free size, in KiB |
|
||||
|
||||
|
||||
|
||||
获取 CPU 瞬时使用率
|
||||
Get the instantaneous CPU usage
|
||||
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|----------------------------------------------|--------------------------|
|
||||
| Get resource information | C | extern float kdk_rti_get_cpu_current_usage() | 获取CPU瞬时使用率 |
|
||||
| Get resource information | C | extern float kdk_rti_get_cpu_current_usage() | Get the instantaneous CPU usage |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | float CPU瞬时使用率,该值 < 1.00 |
|
||||
| | | 无 | float Instantaneous CPU usage, the value < 1.00 |
|
||||
|
||||
|
||||
获取操作系统开机时长
|
||||
Get the operating system boot time
|
||||
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------------------|----------------|------------------------------------------------------------------------------------------------------------|------------|
|
||||
| Get resource information | C | extern int kdk_rti_get_uptime(unsigned int *day, unsigned int *hour, unsigned int *min, unsigned int *sec) | 获取操作系统开机时长 |
|
||||
| Get resource information | C | extern int kdk_rti_get_uptime(unsigned int *day, unsigned int *hour, unsigned int *min, unsigned int *sec) | Get the operating system boot time |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | day:开机天数<br> hour小时数,该数值一定 < 24<br> min:分钟数,该数值一定 < 60<br> sec:秒数,该数值一定 < 60 | int 返回0表示成功,返回非零表示失败 |
|
||||
| | | day:The number of working days<br> hour, the value must be < 24<br> min: the number of minutes, the value must be < 60<br> sec: the number of seconds, the value must be < 60 | int Return 0 for success, return non-zero for failure |
|
||||
|
||||
|
||||
获取指定进程的 CPU 使用率
|
||||
Get the CPU usage of the specified process
|
||||
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|--------------------------------------------------------------|---------------|
|
||||
| Get resource information | C | extern float kdk_get_process_cpu_usage_percent(int proc_num) | 获取指定进程的CPU使用率 |
|
||||
| Get resource information | C | extern float kdk_get_process_cpu_usage_percent(int proc_num) | Get the CPU usage of the specified process |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | proc_num:进程号 | float CPU使用率 |
|
||||
| | | proc_num:process number | float CPU usage |
|
||||
|
||||
|
||||
|
||||
获取指定进程的内存占用率
|
||||
Get the memory usage of the specified process
|
||||
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|--------------------------------------------------------------|--------------|
|
||||
| Get resource information | C | extern float kdk_get_process_mem_usage_percent(int proc_num) | 获取指定进程的内存占用率 |
|
||||
| Get resource information | C | extern float kdk_get_process_mem_usage_percent(int proc_num) | Get the memory usage of the specified process |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | proc_num:进程号 | float 内存占用率 |
|
||||
| | | proc_num:process number | float memory usage |
|
||||
|
||||
|
||||
|
||||
获取指定进程的进程状态
|
||||
Get the process status of the specified process
|
||||
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|---------------------------------------------------|-------------|
|
||||
| Get resource information | C | extern char* kdk_get_process_status(int proc_num) | 获取指定进程的进程状态 |
|
||||
| Get resource information | C | extern char* kdk_get_process_status(int proc_num) | Get the process status of the specified process |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | proc_num:进程号 | char* 进程状态 |
|
||||
| | | proc_num:process number | char* process status |
|
||||
|
||||
|
||||
|
||||
获取指定进程的端口号占用
|
||||
Get the port number occupied by the specified process
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|-----------------------------------------------|--------------|
|
||||
| Get resource information | C | extern int kdk_get_process_port(int proc_num) | 获取指定进程的端口号占用 |
|
||||
| Get resource information | C | extern int kdk_get_process_port(int proc_num) | Get the port number occupied by the specified process |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | proc_num:进程号 | char* 使用的端口号 |
|
||||
| | | proc_num:process number | char* port number used |
|
||||
|
||||
|
||||
|
||||
获取指定进程的启动时间
|
||||
Get the startup time of the specified process
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|-------------------------------------------------------|-------------|
|
||||
| Get resource information | C | extern char* kdk_get_process_start_time(int proc_num) | 获取指定进程的启动时间 |
|
||||
| Get resource information | C | extern char* kdk_get_process_start_time(int proc_num) | Get the startup time of the specified process |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | proc_num:进程号 | char* 启动时间 |
|
||||
| | | proc_num:process number | char* Start Time |
|
||||
|
||||
获取指定进程的运行时间
|
||||
Get the running time of the specified process
|
||||
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|-------------------------------------------------------|-------------|
|
||||
| Get resource information | C | extern char* kdk_get_process_start_time(int proc_num) | 获取指定进程的启动时间 |
|
||||
| Get resource information | C | extern char* kdk_get_process_start_time(int proc_num) | Get the running time of the specified process |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | proc_num:进程号 | char* 启动时间 |
|
||||
| | | proc_num:process number | char* running time |
|
||||
|
||||
|
||||
|
||||
获取指定进程的 cpu 时间
|
||||
Get the cpu time of the specified process
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|-----------------------------------------------------|--------------|
|
||||
| Get resource information | C | extern char* kdk_get_process_cpu_time(int proc_num) | 获取指定进程的cpu时间 |
|
||||
| Get resource information | C | extern char* kdk_get_process_cpu_time(int proc_num) | Get the cpu time of the specified process |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | proc_num:进程号 | char* cpu时间 |
|
||||
| | | proc_num:process number | char* cpu时间 |
|
||||
|
||||
|
||||
|
||||
获取指定进程的 Command
|
||||
Get the Command of the specified process
|
||||
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|----------------------------------------------------|----------------|
|
||||
| Get resource information | C | extern char* kdk_get_process_command(int proc_num) | 获取指定进程的Command |
|
||||
| Get resource information | C | extern char* kdk_get_process_command(int proc_num) | Get the Command of the specified process |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | proc_num:进程号 | char* Command |
|
||||
| | | proc_num:process number | char* Command |
|
||||
|
||||
|
||||
|
||||
|
@ -905,7 +905,7 @@ $ sudo apt-get install libkysdk-sysinfo libkysdk-sysinfo-dev
|
|||
```
|
||||
|
||||
|
||||
(1)CMakeLists.txt 构建项目
|
||||
(1)CMakeLists.txt build project
|
||||
|
||||
|
||||
```
|
||||
|
@ -1030,9 +1030,9 @@ target_link_libraries(kysysinfo-test kysysinfo)
|
|||
|
||||
|
||||
|
||||
### **3.1.6** 获取网络信息
|
||||
### **3.1.6** Get network information
|
||||
|
||||
获取网络连接状态
|
||||
Get network connection status
|
||||
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|
@ -1216,7 +1216,7 @@ target_link_libraries(locationtest kylocation)
|
|||
|--------------------|------|-----------------------------------------------------------------------------|------------------|----------------------------------|
|
||||
| OCR text recognition function | C++ | Std::vector<std::vector<std::vector<int>>> kdk::kdkOCR::getRect(const std::string &imagePath) || get text box |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | String 图片文件路径 | Vector<vector<vector<vector<int> <br> The coordinate matrix of the text box points, and the number of text boxes |
|
||||
| | | String Image file path | Vector<vector<vector<vector<int> <br> The coordinate matrix of the text box points, and the number of text boxes |
|
||||
|
||||
|
||||
|
||||
|
@ -1418,7 +1418,7 @@ Title switching, the title color responds to the window activation status, and t
|
|||
![输入图片说明](assets/openKylin%20SDK%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97V2.0/image5.png)
|
||||
|
||||
|
||||
| 枚举类型 | LayoutType { VerticalType, HorizontalType, MixedType } |
|
||||
| enumerated type | LayoutType { VerticalType, HorizontalType, MixedType } |
|
||||
|------|--------------------------------------------------------|
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue