dio_bus_match(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 πŸ’«


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