| KDK_BIOS_GET_VERSION(3) | Library Functions Manual | KDK_BIOS_GET_VERSION(3) |
NAME
kdk_bios_get_version - 获取bios版本
SYNOPSIS
#include <libkybios.h> extern const char* kdk_bios_get_version(); Link with -lkyhw.
Detailed Description
The main function of the interface is to obtain bios version
RETURN VALUE
On success, returns the bios version of type char*; The returned string needs to be released by free
On error, return NULL.
EXAMPLES
#include <stdio.h> #include "libkybios.h" #include <stdlib.h>
int main()
{
char *vendor = kdk_bios_get_vendor();
char *version = kdk_bios_get_version();
printf("vendor: %s", vendor);
printf("version: %s",version);
free(vendor);
free(version);
return 0;
}
CONFORMING TO
These functions are as per the withdrawn POSIX.1e draft specification. The following functions are Linux extensions: kdk_bios_get_vendor(). and kdk_bios_free().
SEE ALSO
| Thu Aug 14 2023 | Linux Programmer's Manual |