of_match_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 of of_device_id match 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 πŸ‘‘


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