LIBKYRTINFO(3)

NAME
kdk_rti_get_mem_res_total_KiB, kdk_rti_get_mem_res_usage_percent, kdk_rti_get_mem_res_usage_KiB, kdk_rti_get_mem_res_available_KiB, kdk_rti_get_mem_res_free_KiB, kdk_rti_get_mem_virt_alloc_KiB, kdk_rti_get_mem_swap_total_KiB, kdk_rti_get_mem_swap_usage_percent, kdk_rti_get_mem_swap_usage_KiB, kdk_rti_get_mem_swap_free_KiB, kdk_rti_get_cpu_current_usage, kdk_rti_get_uptime, kdk_get_process_name, kdk_get_process_id, kdk_get_process_cpu_usage_percent, kdk_get_process_mem_usage_percent, kdk_get_process_status, kdk_get_process_port, kdk_get_process_start_time, kdk_get_process_running_time, kdk_get_process_cpu_time, kdk_get_process_command, kdk_get_process_user, kdk_procname_get_process_infomation, kdk_get_process_all_information, kdk_proc_freeall - 获取当前系统资源占用信息

SYNOPSIS
#include <libkyrtinfo.h>

extern unsigned long kdk_rti_get_mem_res_total_KiB();

extern float kdk_rti_get_mem_res_usage_percent();

extern unsigned long kdk_rti_get_mem_res_usage_KiB();

extern unsigned long kdk_rti_get_mem_res_available_KiB();

extern unsigned long kdk_rti_get_mem_res_free_KiB();

extern unsigned long kdk_rti_get_mem_virt_alloc_KiB();

extern unsigned long kdk_rti_get_mem_swap_total_KiB();

extern float kdk_rti_get_mem_swap_usage_percent();

extern unsigned long kdk_rti_get_mem_swap_usage_KiB();

extern unsigned long kdk_rti_get_mem_swap_free_KiB();

extern float kdk_rti_get_cpu_current_usage();

extern int kdk_rti_get_uptime(unsigned int *day, unsigned int *hour, unsigned int *min, unsigned int *sec);

#include <libkyprocess.h>

extern char* kdk_get_process_name(int proc_num);

extern int kdk_get_process_id(char *proc_name);

extern float kdk_get_process_cpu_usage_percent(int proc_num");"

extern float kdk_get_process_mem_usage_percent(int proc_num);

extern char* kdk_get_process_status(int proc_num);

extern int kdk_get_process_port(int proc_num);

extern char* kdk_get_process_start_time(int proc_num);

extern char* kdk_get_process_running_time(int proc_num);

extern char* kdk_get_process_cpu_time(int proc_num);

extern char* kdk_get_process_command(int proc_num);

extern char* kdk_get_process_user(int proc_num);

extern char** kdk_procname_get_process_infomation(char *proc_name);

extern char** kdk_get_process_all_information();

extern inline void kdk_proc_freeall(char **ptr);

Link with -lkyrtinfo.

Detailed Description
This library contains current system resource consumption information.

RETURN VALUE
The return value is generally specific to the individual function called.

CONFORMING TO
These functions are as per the withdrawn POSIX.1e draft specification. The following functions are Linux extensions: kdk_rti_get_mem_res_total_KiB() and kdk_get_process_name().

SEE ALSO
kdk_rti_get_mem_res_total_KiB(3) and kdk_get_process_name(3).