LIBKYSYSINFO(3)

NAME
kdk_system_get_architecture, kdk_system_get_systemName, kdk_system_get_version, kdk_system_get_activationStatus, kdk_system_get_serialNumber, kdk_system_get_kernelVersion, kdk_system_get_eUser, kdk_system_get_eUser_login_time, kdk_system_get_projectName, kdk_system_get_projectSubName, kdk_system_get_productFeatures, kdk_system_get_hostVirtType, kdk_system_get_hostCloudPlatform, kdk_system_is_zyj, kdk_system_get_version_detaile, kdk_system_get_resolving_power, kdk_system_get_systemCategory, kdk_system_get_startup_time, kdk_system_get_shutdown_time, kdk_get_host_vendor, kdk_get_host_product, kdk_get_host_serial, kdk_system_get_hostName, kdk_system_get_word, kdk_system_get_buildTime, kdk_resolving_freeall, kdk_hw_get_pci_info, kdk_hw_free_pci_info, kdk_system_get_appScene - 获取操作系统基础信息

SYNOPSIS
#include <libkysysinfo.h>

extern char* kdk_system_get_architecture();

extern char* kdk_system_get_systemName();

extern char* kdk_system_get_version(bool verbose);

extern int kdk_system_get_activationStatus(int *status_error_num, int *date_error_num);

extern char* kdk_system_get_serialNumber();

extern char* kdk_system_get_kernelVersion();

extern char* kdk_system_get_eUser();

extern char* kdk_system_get_eUser_login_time();

extern char* kdk_system_get_projectName();

extern char* kdk_system_get_projectSubName();

extern unsigned int kdk_system_get_productFeatures();

extern char* kdk_system_get_hostVirtType();

extern char* kdk_system_get_hostCloudPlatform();

extern bool kdk_system_is_zyj(void);

extern version_t kdk_system_get_version_detaile();

extern char** kdk_system_get_resolving_power();

extern char* kdk_system_get_systemCategory();

extern char** kdk_system_get_startup_time();

extern char** kdk_system_get_shutdown_time();

extern char *kdk_get_host_vendor();

extern char *kdk_get_host_product();

extern char *kdk_get_host_serial();

extern char *kdk_system_get_hostName();

extern int kdk_system_get_word();

extern char *kdk_system_get_buildTime();

extern inline void kdk_resolving_freeall(char **ptr);

extern struct KPci *kdk_hw_get_pci_info();

extern void kdk_hw_free_pci_info(struct KPci *info);

extern char *kdk_system_get_appScene();

Link with -lkysysinfo.

Detailed Description
This library contains instantaneous information about the current system.

DATA STRUCTURES
Structure version_t contains information related to a system version number and patch version number information: typedef struct {
    char *os_version; //系统版本
    char *update_version; //补丁版本
} version_t; There are other members not documented here, which are only meant for libkysysinfo internal use. Structure KPci contains information related to a pci bus information: struct KPci {
    char slot_path[16];
    char class_name[128];
    char product_name[128];
    unsigned char rev;
    char ss_name[256];
    char driver_use[1024];
    char **modules;
    int module_count;
    struct KPci *next;
}; There are other members not documented here, which are only meant for libkysysinfo internal use.

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_system_get_architecture(), kdk_system_get_systemName(), kdk_system_get_version(), kdk_system_get_serialNumber(), kdk_system_get_kernelVersion(), kdk_system_get_eUser(), kdk_system_get_eUser_login_time(), kdk_system_get_projectName(), kdk_system_get_projectSubName(), kdk_system_get_productFeatures(), kdk_system_get_hostVirtType(), kdk_system_get_hostCloudPlatform(), kdk_system_is_zyj(), kdk_system_get_version_detaile(), kdk_system_get_resolving_power(), kdk_system_get_systemCategory(), kdk_system_get_startup_time(), kdk_system_get_shutdown_time(), kdk_get_host_vendor(), kdk_get_host_product(), kdk_get_host_serial(), kdk_system_get_hostName(), kdk_system_get_word(), kdk_system_get_buildTime(), kdk_resolving_freeall(), kdk_hw_get_pci_info(), kdk_hw_free_pci_info(), and kdk_system_get_appScene().

SEE ALSO
kdk_system_get_architecture(3), kdk_system_get_systemName(3), kdk_system_get_version(3), kdk_system_get_activationStatus(3), kdk_system_get_serialNumber(3), kdk_system_get_kernelVersion(3), kdk_system_get_eUser(3), kdk_system_get_eUser_login_time(3), kdk_system_get_projectName(3), kdk_system_get_projectSubName(3), kdk_system_get_productFeatures(3), kdk_system_get_hostVirtType(3), kdk_system_get_hostCloudPlatform(3), kdk_system_is_zyj(3), kdk_system_get_version_detaile(3), kdk_system_get_resolving_power(3), kdk_system_get_systemCategory(3), kdk_system_get_startup_time(3), kdk_system_get_shutdown_time(3), kdk_get_host_vendor(3), kdk_get_host_product(3), kdk_get_host_serial(3), kdk_system_get_hostName(3), kdk_system_get_word(3), kdk_system_get_buildTime(3), kdk_resolving_freeall(3), kdk_hw_get_pci_info(3), kdk_hw_free_pci_info(3), and kdk_system_get_appScene(3).