bus_find_next_device(9)
π bus_find_next_device (kernel API manual, bestie!!)
okay so this is a page from the Kernel API Manual β yes, the real one β and today's main character is bus_find_next_device. it's giving "where's the next one" energy and honestly? iconic.
β¨ NAME β¨
bus_find_next_device β find the next device after a given device in a given bus. literally that's it, that's the whole vibe: you hand it a device, it goes "okay but who's next" π¦
πΈ SYNOPSIS πΈ
struct device * bus_find_next_device (const struct bus_type *bus ,
struct device *cur );
it returns a struct device *, no cap. two things go in, one device pointer comes out π
π ARGUMENTS π
busβ the bus type. the bus we're snooping around in, bestie πcurβ device to begin the search with. the starting point, the "before" picture, the place you're picking up from π«Ά
π₯ SEE ALSO π₯
- Kernel file
./include/linux/device/bus.hβ and specificallystruct bus_type(9), which is like the blueprint for the whole bus situation bus_find_device_by_name(9)β finding a device by its namebus_find_device_by_of_node(9)β finding one by device-tree nodebus_find_device_by_fwnode(9)β finding one by firmware nodebus_find_device_by_devt(9)β finding one bydev_tbus_find_device_by_acpi_dev(9)β finding one by ACPI deviceenum bus_notifier_event(9)β for when you wanna know what's happening on the bus π
go read those too, iykwim π
ngl this one's short and sweet β no options, no exit statuses, no traps. just a device pointer and good vibes β¨
okay bye bestie, this page lived at ./include/linux/device, it's stamped October 2026, and the manual's name is bus_find_next_device(9) β remember it fondly, slay π
π
π¦ 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