rio_match_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

rio_match_device(9) 🌸

welcome to the Kernel API Manual, bestie β€” this one is all about rio_match_device(9) and it's lowkey iconic πŸ’…


✨ NAME ✨

rio_match_device β€” tell if a RIO device has a matching RIO device id structure. That's the whole vibe 🫢


🌸 SYNOPSIS 🌸

okay so here's the exact signature, no cap:

       const struct rio_device_id * rio_match_device (const struct
       rio_device_id *id , const struct rio_dev *rdev );

it returns a const struct rio_device_id *, and it takes id and rdev. periodt ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • id β€” the RIO device id structure to match against 🎯
  • rdev β€” the RIO device structure to match against 🎯

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so bestie, this function is used from driver probe and bus matching to check whether a RIO device matches a device id structure provided by a RIO driver. it's giving "do these two belong together?" energy πŸ’–

it returns the matching struct rio_device_id or NULL if there is no match. so yeah β€” match found? you get the matching struct rio_device_id. no match? NULL, and that's that. no cap 😭


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/rapidio/rio-driver.c is right here, and the whole squad is:


cute sign-off: source/version ./drivers/rapidio, date October 2026 β€” bye bestie, go match those devices πŸ’œπŸ¦‹

πŸ“¦ where this page comes from