BUS_SET_PASS(9)

πŸ’– BUS_SET_PASS πŸ’–

ok so bestie, this is the bus_set_pass page from section 9 of the kernel developer's manual β€” the one all about leveling up your bus pass situation 🚌✨


✨ NAME ✨

bus_set_pass β€” raise the bus pass level πŸ†™πŸ’…


🌸 SYNOPSIS 🌸

#include <sys/param.h>
#include <sys/bus.h>

void
bus_set_pass(int pass);

like, that's the whole vibe. two includes, one function, zero drama πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the bus_set_pass function is called during boot to raise the bus pass level up to pass. it's giving glow-up but for the device tree 😌

here's the tea: the function will rescan the device tree for each pass level between the current pass level and the new level β€” but only for the levels that have at least one associated driver. not me being picky about which passes get the rescan treatment πŸ’€

and how do those rescans actually happen? the device tree rescans are implemented by invoking the BUS_NEW_PASS(9) method on the root bus device. that's it. that's the mechanism. the root bus device is the main character here, no cap πŸ‘‘


πŸ‘€ SEE ALSO πŸ‘€

go read those too, iykyk 🫢


πŸŽ€ a lil sign-off πŸŽ€

this page came to you from the Debian crew, dated June 8, 2009 β€” yes bestie, that's the footer, and yes i'm telling you about it anyway because it's part of the lore πŸ“βœ¨

ok bye, go rescan something πŸ’–πŸ¦‹πŸŒˆ

πŸ“¦ where this page comes from