kdk_board_get_date(3)

kdk_board_get_date3

获取主板生产日期

Usage

#include <libkyboard.h>

extern const char* kdk_board_get_date();

Link with -lkyhw.

Detailed Description

The main function of the interface is to obtain the production date of the mainboard

Return value

On success, return the production date of the mainboard of type char*; The returned string needs to be released by free

On error, return NULL.

Examples

#include "stdio.h"
#include "libkyboard.h"
int main()
{
    char *name = kdk_board_get_name();
    char *vendor = kdk_board_get_vendor();
    char *date = kdk_board_get_date();
    char *serial = kdk_board_get_serial();
    printf("name : %s", name);
    printf("vendor : %s", vendor);
    printf("date : %s", date);
    printf("serial : %s", serial);
    free(name);
    free(vendor);
    free(date);
    free(serial);
    return 0;
}

Conforming to

These functions are as per the withdrawn POSIX.1e draft specification. The following functions are Linux extensions: kdk_board_get_vendor(), kdk_board_get_name(), kdk_board_get_serial() and kdk_board_free().

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