of_match_device(9)
πΈ NAME πΈ
of_match_device β tell if a struct device matches an of_device_id list. This is of_match_device(9) from the Kernel API Manual, and it's literally the "do you support this device, bestie?" check. π
β¨
π SYNOPSIS π
const struct of_device_id * of_match_device (const struct of_device_id
*matches , const struct device *dev );
π ARGUMENTS π
matchesβ array ofof_device_idmatch structures to search in. Like the guest list, but for devices. πdevβ the OF device structure to match against. The device walking up to the velvet rope. π«Ά
π¦ DESCRIPTION π¦
Okay so picture a driver checking whether a platform_device that's present in the system is in its list of supported devices. That's the whole gig. It's a support-list vibe check, no cap. β¨
π SEE ALSO π
- Kernel file
./drivers/of/device.c of_dma_configure_id(9)of_device_modalias(9)of_device_uevent(9)of_device_make_bus_id(9)
That's the page, bestie! Source/version: ./drivers/of Β· Date: October 2026 Β· Page: of_match_device(9). Stay slay and keep matching those devices ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms