bus_find_next_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ”₯

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