dio_match_device(9)
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
- 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