coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cbfs-serial.c File Reference
#include <cbfs.h>
#include <device/device.h>
#include <smbios.h>
#include <string.h>
Include dependency graph for cbfs-serial.c:

Go to the source code of this file.

Macros

#define MAX_SERIAL_LENGTH   0x100
 

Functions

const char * smbios_mainboard_serial_number (void)
 

Macro Definition Documentation

◆ MAX_SERIAL_LENGTH

#define MAX_SERIAL_LENGTH   0x100

Definition at line 8 of file cbfs-serial.c.

Function Documentation

◆ smbios_mainboard_serial_number()

const char* smbios_mainboard_serial_number ( void  )

Definition at line 10 of file cbfs-serial.c.

References cbfs_load(), MAX_SERIAL_LENGTH, and strncpy().

Here is the call graph for this function: