lazybios 3.0.0
Lightweight SMBIOS/DMI parsing library
Loading...
Searching...
No Matches
Type 25: System Power Controls Guide

Date and time fields for the next scheduled system power-on.

Result set and ownership

lazybiosGetType25 returns a lazybiosType25Array_t holding every matching structure. Iterate entries using count. A non-NULL result whose count is zero means the table contains no structure of this type; NULL means the arguments were unusable or an allocation failed. Release the set with lazybiosFreeType25, or assign it to ctx->Type25 and let lazybiosCleanup own it.

Every record carries its own SMBIOS handle and the structure length the firmware reported.

Scheduled power-on

The month, day, hour, minute, and second fields are packed BCD values. Valid ranges are 1 through 12 for the month, 1 through 31 for the day, 0 through 23 for the hour, and 0 through 59 for minutes and seconds. A value with an invalid BCD digit or a value outside its field range does not constrain that schedule component.

decoded.next_scheduled_power_on validates each component and formats the result as MM-DD HH:MM:SS. Unspecified, absent, or invalid components are represented by *.

Ownership

The returned structure array is allocated by the parser. Release it with lazybiosFreeType25 or assign it to lazybiosCTX::Type25 and use lazybiosCleanup.

See also
Type 25: System Power Controls