dio_match_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to dio_match_device(9) from the Kernel API Manual. it's giving β€œdoes this DIO device match one of these DIO device ids?” energy, and honestly? iconic little helper. πŸ’…

πŸ’– NAME πŸ’–

dio_match_device β€” tell if a DIO device structure has a matching DIO device id structure.

✨ SYNOPSIS ✨

here's the signature, character-for-character, no edits, no cap:

const struct dio_device_id * dio_match_device (const struct dio_device_id *ids , const struct dio_dev *d );

πŸŽ€ ARGUMENTS πŸŽ€

  • ids β€” array of DIO device id structures to search in. this is the list you're checking against, bestie.
  • d β€” the DIO device structure to match against. the actual device in question.

πŸ¦‹ DESCRIPTION πŸ¦‹

Used by a driver to check whether a DIO device present in the system is in its list of supported devices. Returns the matching dio_device_id structure or NULL if there is no match.

so: driver has a list, device shows up, and this function does the matchy-match. match found β†’ you get the matching dio_device_id structure. no match β†’ NULL. that's it, that's the vibe. 🫢

🌸 SEE ALSO 🌸

Kernel file ./drivers/dio/dio-driver.c β€” plus these besties: dio_register_driver(9), dio_unregister_driver(9), dio_bus_match(9).


mwah πŸ’‹ source/version: ./drivers/dio Β· date: October 2026. that's the page, bestie β€” go match those devices and slay. πŸ’–βœ¨

πŸ“¦ where this page comes from