bus_find_device_by_devt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bus_find_device_by_devt(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ this one's a lil shortie but she's iconic β€” a whole function whose entire personality is "find me that ONE device, thanks." no cap. πŸŽ€


🌸 NAME 🌸

bus_find_device_by_devt β€” a device iterator that's on a very specific mission: locating a particular device that matches the device type. like, she's not browsing, she's shopping with a list. πŸ›οΈ


✨ SYNOPSIS ✨

struct device * bus_find_device_by_devt (const struct bus_type *bus ,
dev_t devt );

look at her go 😭 she takes a bus and a devt and hands you back a struct device * like it's your fave drink order. periodt. πŸ₯€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bus β€” bus type. yeah. that's the whole description. she's a woman of few words and honestly? respect. πŸ‘‘
  • devt β€” the device type of the device to match. this is the thing you're hunting for, the vibe check your device has to pass to get picked. πŸ’–

🫢 SEE ALSO 🫢


okay that's the whole page, she's short and sweet and I love her for it πŸ’œ

ngl the entire manual is like three lines long, so consider this your reminder that not every kernel function needs a whole saga. some of them are just little guys. πŸ“

sign-off time!! ✨ this lil beauty came to you straight out of the source tree at ./include/linux/device, dated October 2026 β€” screenshot it, frame it, put it on the fridge, mwah πŸ’‹πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from