| submodule | Programming language | Statement | Description | |
| System time reporting | C | Void TimeChangeSignal(const char* t) | When the system time is modified, the com.kylin.kysdk.TimeServerDbus service will send out a time signal | |
| parameter description | return value description | |||
| t: current time such as: "2021/09 /26 21:13:28" | none | |||
| Submodule | Programming language | Statement | Description | |
| System time reporting | C | void TimeSignal(const char* t) | When the system time is in full minutes, the com.kylin.kysdk.TimeServerDbus service will send out a time signal | |
| parameter description | return value description | |||
| t: current time such as: "2021/ 09/26 21:07:00" | none | |||
| submodule | Programming language | Statement | Description | |
| Get CPU information | C | extern const char* kdk_cpu_get_arch() | Get CPU Architecture | |
| Parameter Description | Return value description | tr> | ||
| None | const char* schema Information, such as "x86_64"; the return is const char*, not free | |||
| submodule | Programming language | statement | describe | |
| Get network card information | C | extern int kdk_nc_get_vendor_and_product(const char *nc, char *vendor, char *product); | Get the manufacturer name and device model of the specified network card | |
| Parameter Description | Return value description | |||
| nc:Network card name, such as eno1vendor:Buffer accepting vendor name product: Buffer accepting device model | 0 : success 1 : failure | |||
| submodule | Programming language | statement | describe | |
| Get package list information | C | extern int kdk_package_is_installed(const char *name, const char *version) | Check whether the package with the specified package name is installed correctly | |
| Parameter Description | Return value description | |||
| name:Package name version: version number, NULL in most cases, reserved for snap | int returns 0 on success, returns an error code on failure | |||
| submodule | Programming language | Statement | Description | |
| Get resource information | C | extern char* kdk_get_process_user(int proc_num) | Get the owner of the specified process | |
| Parameters Description | Return value description | td> | ||
| proc_num: process number | char* owner | |||
| submodule | Programming language | Statement | Description | |
| Get resource information | C | extern float kdk_procname_get_process_cpu_usage_percent(char *proc_name) | Get the CPU usage of the specified process | |
| Parameter description | Return value description | < /td> | ||
| proc_name process name | float CPU usage | |||
| submodule | Programming language | Statement | Description | |
| Get resource information | C | extern char** kdk_procname_get_process_infomation(char *proc_name) | Get the information of the specified process | |
| Parameter description | Return value description | < /td> | ||
| proc_name process name | char** process information list, ending with NULL, generated by alloc, needs to be reclaimed by kdk_proc_freeall; if there is an error in obtaining, return NULL; | |||
| submodule | Programming language | Statement | Description | |
| Get resource information | C | char** kdk_get_process_all_information() | Get all process information | |
| Parameter Description | Return value description | tr> | ||
| None | char** process All information lists, end with NULL, are generated by alloc and need to be recycled by kdk_proc_freeall; if there is an error in obtaining, return NULL; | td> | ||
| submodule | Programming language | Statement | Description | |
| Get resource information | C | extern inline void kdk_proc_freeall(char **ptr) | recycle string list | |
| parameters Description | Return value description | td> | ||
| ptr: string list | none | |||
| submodule | Programming language | Statement | Description | |
| Get basic system information | C | extern int kdk_net_get_port_stat(int port); | Get port status | |
| Parameter description< /td> | Return value description | |||
| port port number | int port status FREE: 0TCP_ESTABLISHED:1 TCP_SYN_SENT:2 TCP_SYN_RECV:3 TCP_FIN_WAIT1:4 TCP_FIN_WAIT2:5 TCP_TIME_WAIT:6 TCP_CLOSE:7 TCP_CLOSE_WAIT:8 TCP_LAST_ACL:9 TCP_LISTEN:10 TCP_CLOSING:11 | cpanS="1 ="1" width="91">|||
| submodule | Programming language | Statement | Description | |
| Get system basic information | C | int kdk_net_get_multiple_port_stat(int start, int end, int *result) td> | Get [start, end] port status | |
| parameter description | return value description | |||
| start start port number end end port number result int with enough space array. Accept port status | Success returns 0 Failure returns port status | |||
| submodule | Programming language | Statement | Description | |
| Get basic system information | C | extern prouteMapList kdk_net_get_route(); | Get Default Gateway | |
| Parameter Description | Return value description | tr> | ||
| None | prouteMapList network management information, The specific information is fetched by yourself, and NULL is returned if it fails | |||
| submodule | Programming language | Statement | Description | |
| Get system basic information | C | extern pChain kdk_net_get_iptable_rules() | Get Firewall Information | |
| Parameter Description | Return value description | |||
| None | pChain firewall information, specific Information self-fetching, failure returns NULL | |||
| submodule | Programming language | Statement | Description | |
| Get basic system information | C++ | RealTimeInfo::float kdk_real_get_net_speed(); | Get Instantaneous Internet Speed | |
| Parameter Description | Return value description | |||
| none | float Instantaneous network speed | |||
| submodule | Programming language | Statement | Description | |
| Get basic system information | C++ | RealTimeInfo::float kdk_real_get_cpu_temperatu(); | Get instantaneous cpu temperature | |
| Parameter description | Return value description | |||
| none | floatcpu Instantaneous temperature | |||
| submodule | Programming language | Statement | Description | |
| Get basic system information | C++ | RealTimeInfo::float kdk_real_get_disk_temperatu(const char * name); | Get the instantaneous hard disk temperature | |
| Parameter description | Return value description | |||
| name: the absolute path of the hard disk | float specifies the instantaneous temperature of the hard disk | |||
| submodule | Programming language | Statement | Description | |
| Get system basic information | C++ | RealTimeInfo::int kdk_real_get_disk_rate(const char *name); | Get disk speed | |
| Parameter description | Return value description | |||
| name: the absolute path of the hard disk | int specifies the disk speed | |||
| enumeration type | enum TailDirection{ TopDirection, LeftDirection, BottomDirection, RightDirection, None }; |
| enum TailLocation{ LeftLocation, MiddleLocation, RightLocation }; |