Page MenuHomeFreeBSD

linuxkpi/dmi: don't match exactly on DMI_MATCH
ClosedPublic

Authored by corvink on Jun 3 2022, 2:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 27, 7:09 PM
Unknown Object (File)
Wed, May 20, 1:33 PM
Unknown Object (File)
Wed, May 20, 7:11 AM
Unknown Object (File)
Fri, May 15, 3:42 PM
Unknown Object (File)
Apr 28 2026, 9:27 AM
Unknown Object (File)
Apr 27 2026, 12:35 PM
Unknown Object (File)
Apr 8 2026, 12:55 AM
Unknown Object (File)
Apr 7 2026, 8:23 PM

Details

Summary

Linux has two defines to check dmi data. DMI_MATCH checks if the dmi
string includes substr. DMI_EXACT_MATCH checks if the dmi string exactly
matches substr. Compat layer should have the same behaviour.

The new definition of dmi_strmatch shouldn't break any driver. A driver
would break if it uses the highest bit of the slot field. Nevertheless,
linux uses the same definition and FreeBSD uses dmi_field values as slot
which are lower than 128.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable