dio_bus_match(9)
π NAME π
Hii bestie! This page is dio_bus_match(9) from the Kernel API Manual, and its whole personality is: tell if a DIO device structure has a matching DIO device id structure. That's it, that's the assignment. π
β¨ SYNOPSIS β¨
int dio_bus_match (struct device *dev , const struct device_driver *drv
);
π¦ ARGUMENTS π¦
devβ the DIO device structure to match against. The device we're checking, basically.drvβ the device_driver that points to the array of DIO device id structures to search. This is where the driver core goes looking for a match.
πΈ DESCRIPTION πΈ
Okay so here's the tea: the driver core uses this to check whether a DIO device that's present in the system is in a driver's list of supported devices. It's giving matchmaker energy, but make it kernel. π₯
Returns 1 if supported, and 0 if there is no match. No cap. π
π« SEE ALSO π«
- Kernel file
./drivers/dio/dio-driver.cβ go read it, bestie:dio_match_device(9),dio_register_driver(9), anddio_unregister_driver(9)are all right there.
Cute sign-off time: this page's source/version is ./drivers/dio, dated October 2026. Byeee, ily, go match some 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