LIBKYHW(3)

NAME
kdk_bios_get_vendor, kdk_bios_get_version, kdk_bios_free, kdk_board_get_name, kdk_board_get_date, kdk_board_get_serial, kdk_board_get_vendor, kdk_board_free, kdk_cpu_get_arch, kdk_cpu_get_vendor, kdk_cpu_get_model, kdk_cpu_get_freq_MHz, kdk_cpu_get_corenums, kdk_cpu_get_virt, kdk_cpu_get_process, kdk_display_get_vendor, kdk_display_get_product, kdk_display_get_description, kdk_display_get_physical_id, kdk_display_get_bus_info, kdk_display_get_version, kdk_display_get_width, kdk_display_get_clock, kdk_display_get_capabilities, kdk_display_get_configuration, kdk_display_get_resources, kdk_nc_get_cardlist, kdk_nc_is_up, kdk_nc_get_upcards, kdk_nc_get_phymac, kdk_nc_get_private_ipv4, kdk_nc_get_ipv4, kdk_nc_get_private_ipv6, kdk_nc_get_ipv6, kdk_nc_is_wireless, kdk_nc_get_vendor_and_product, kdk_nc_get_driver, kdk_nc_freeall - 获取bios、主板、cpu、显卡、网卡信息

SYNOPSIS
#include <libkybios.h>

#include <libkyboard.h>

#include <libkycpu.h>

#include <libkydisplay.h>

#include <libkync.h>

extern const char* kdk_bios_get_vendor();

extern const char* kdk_bios_get_version();

extern void kdk_bios_free(char *info);

extern const char* kdk_board_get_name();

extern const char* kdk_board_get_date();

extern const char* kdk_board_get_serial();

extern const char* kdk_board_get_vendor();

extern void kdk_board_free(char *info);

extern const char* kdk_cpu_get_arch();

extern const char* kdk_cpu_get_vendor();

extern const char* kdk_cpu_get_model();

extern const char* kdk_cpu_get_freq_MHz();

extern const char* kdk_cpu_get_corenums();

extern const char* kdk_cpu_get_virt();

extern const char* kdk_cpu_get_process();

extern char* kdk_display_get_vendor();

extern char* kdk_display_get_product();

extern char* kdk_display_get_description();

extern char* kdk_display_get_physical_id();

extern char* kdk_display_get_bus_info();

extern char* kdk_display_get_version();

extern char* kdk_display_get_width();

extern char* kdk_display_get_clock();

extern char* kdk_display_get_capabilities();

extern char* kdk_display_get_resources();

extern char* kdk_display_get_configuration();

extern char** kdk_nc_get_cardlist();

extern int kdk_nc_is_up(const char *nc);

extern char** kdk_nc_get_upcards();

extern char* kdk_nc_get_phymac(const char *nc);

extern char* kdk_nc_get_private_ipv4(const char *nc);

extern char** kdk_nc_get_ipv4(const char* nc);

extern char* kdk_nc_get_private_ipv6(const char *nc);

extern char** kdk_nc_get_ipv6(const char *nc);

extern int kdk_nc_is_wireless(const char *nc);

extern int kdk_nc_get_vendor_and_product(const char *nc, char *vendor, char *product);

extern char *kdk_nc_get_driver(const char *nc);

extern inline void kdk_nc_freeall(char **ptr);

Link with -lkydiskinfo.

Detailed Description
This library contains bios, mainboard, CPU, graphics card, and network card 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_bios_get_vendor(), kdk_board_get_name(), kdk_cpu_get_arch(), kdk_nc_get_cardlist() and kdk_display_get_vendor().

SEE ALSO
kdk_bios_get_vendor(3), kdk_board_get_name(3), kdk_cpu_get_arch(3), kdk_nc_get_cardlist(3), kdk_display_get_vendor(3).