kdk_bios_get_version(3)

kdk_bios_get_version3

获取bios版本

Usage

#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().

From libkysdk-system 3.0.1.4-1 in Arch Linux 2026-11-07. Parsed by carta from the page's man source.