driver_find_device_by_devt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ driver_find_device_by_devt(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… this one's a tiny little function page but it's lowkey doing important matchmaking work, so let's get into it 🫢


🌸 NAME 🌸

driver_find_device_by_devt β€” device iterator for locating a particular device by devt.

like, it's a whole device-iterator situation whose entire personality is "find me the ONE device that matches this devt" πŸ”βœ¨


πŸŽ€ SYNOPSIS πŸŽ€

struct device * driver_find_device_by_devt (const struct device_driver
*drv , dev_t devt );

it's giving "returns a struct device *" and takes two args, no cap πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • drv β€” the driver we're iterating πŸ‘‘ this is the driver whose devices you're walking through, bestie.
  • devt β€” devt pointer to match 🎯 the one you're holding up like a little ID card going "are you this one? no? next."

🌈 SEE ALSO 🌈

Kernel file ./include/linux/device/driver.h, plus the whole friend group of related reads πŸ’œ:

iykyk, that's the full squad of "find a device by something" helpers β€” this one just happens to be the devt girlie πŸ“


πŸ’€ reminder: keep the types exactly as written β€” const struct device_driver *drv and dev_t devt β€” no "fixing" them, that's the whole api, periodt ✨

okay that's the page!! mwah πŸ’‹ this came from ./include/linux/device, dated October 2026 β€” go forth and iterate responsibly, bestie πŸ§šπŸ’–

πŸ“¦ where this page comes from