Page MenuHomeFreeBSD

Add smbios sysctl entries for fields for SMBIOS up to version 2.4
ClosedPublic

Authored by stevek on Aug 9 2016, 8:29 PM.

Details

Summary

Add sysctls under smbios.system for the following SMBIOS Type 1 fields:
smbios.system.sku - SKU Number (SMBIOS 2.4 and above)
smbios.system.family - Family (SMBIOS 2.4 and above)

Add sysctls under smbios.planar for the following SMBIOS Type 2 fields:
smbios.planar.tag - Asset Tag
smbios.planar.location - Location in Chassis

Sponsored by Juniper Networks, Inc.

Test Plan

Same changes used in Juniper builds of the FreeBSD kernel for some platforms.
On the platforms that have SMBIOS 2.4 or above, the sysctls get populated
with the correct values. (The planar sysctls are populated regardless of
the version of SMBIOS and have been verified.)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

stevek retitled this revision from to Add smbios sysctl entries for fields for SMBIOS up to version 2.4.
stevek updated this object.
stevek edited the test plan for this revision. (Show Details)
jhb added a reviewer: jhb.

I would just say that these are kernel environment variables rather than sysctls in the commit message.

This revision is now accepted and ready to land.Aug 10 2016, 1:50 PM
grembo added a reviewer: grembo.
In D7453#155148, @jhb wrote:

I would just say that these are kernel environment variables rather than sysctls in the commit message.

Good point, I will adjust that. I think my head has been in sysctls way too much lately that my fingers decided to type sysctl when I wrote that.

This revision was automatically updated to reflect the committed changes.