bus_find_device_by_devt(9)
π 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 π«Ά
- Kernel file
./include/linux/device/bus.hstruct bus_type(9)β like, literally start here bestie, she's the blueprint π bus_find_device_by_name(9)β same energy, but you're looking her up by name π·οΈbus_find_device_by_of_node(9)β finding her by devicetree node π³bus_find_device_by_fwnode(9)β finding her by firmware node π§bus_find_next_device(9)β the "next!" iteration bestie, moving down the line π«bus_find_device_by_acpi_dev(9)β finding her via ACPI πenum bus_notifier_event(9)β notifier events, different vibe entirely but she's in the group chat too π¬
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
- 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