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)
Mon, Mar 30, 3:14 PM
Unknown Object (File)
Mon, Mar 30, 10:24 AM
Unknown Object (File)
Sat, Mar 28, 7:19 PM
Unknown Object (File)
Sun, Mar 22, 7:01 AM
Unknown Object (File)
Thu, Mar 19, 6:08 AM
Unknown Object (File)
Thu, Mar 19, 2:47 AM
Unknown Object (File)
Sun, Mar 15, 1:50 AM
Unknown Object (File)
Fri, Mar 6, 5:06 AM

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