bus_rescan_devices(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bus_rescan_devices β€” Kernel API Manual, section 9 πŸŽ€

okay so bestie, this is bus_rescan_devices(9) from the Kernel API Manual and it's literally the glow-up artist for lonely driverless devices, iykyk ✨


🌸 NAME 🌸

bus_rescan_devices β€” rescan devices on the bus for possible drivers πŸ’–

like, you got devices sitting there with no driver and you're gonna go find them a match. matchmaker era 🫢


✨ SYNOPSIS ✨

int bus_rescan_devices (const struct bus_type *bus );

one function, one arg, no cap πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • bus β€” the bus to scan. that's it, that's the whole vibe. you hand it a const struct bus_type * and it goes to work πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜• β€” this function goes looking for devices on the bus that have no driver attached, and it rescans them against the existing drivers to see if it matches any. how? by calling device_attach for the unbound devices. periodt ✨

like, the unmatched devices get a second chance at love and device_attach is the wingman πŸ˜­πŸ’–

it's giving "second-chance romance" and honestly? obsessed.

ngl the whole point is the unbound ones β€” devices that already have a driver aren't the target here, bestie. it's specifically the driverless girlies getting a re-check 🧚

🌈 SEE ALSO 🌈

Kernel file ./drivers/base/bus.c β€” and the whole friend group πŸ‘‘


πŸ’œ and that's the whole page! this iconic little entry lives in ./drivers/base and it's dated October 2026, still serving bus_rescan_devices(9) realness. go forth and attach some devices, bestie πŸŒΈπŸ¦‹βœ¨

πŸ“¦ where this page comes from