BUS_GENERIC_NEW_PASS(9)
β¨ BUS_GENERIC_NEW_PASS(9) β¨
okay so bestie, welcome to the BUS_GENERIC_NEW_PASS page from the Kernel Developer's Manual π this is the one about the generic implementation of BUS_NEW_PASS for bus devices, and honestly? it's giving backstage-pass energy π
π NAME π
bus_generic_new_pass β the generic, one-size-fits-all implementation of BUS_NEW_PASS for bus devices. no cap, that's literally what it is π
π¦ SYNOPSIS π¦
#include <sys/param.h>
#include <sys/bus.h>
void
bus_generic_new_pass(device_t dev);
so you're pulling in <sys/param.h> and <sys/bus.h>, and the function itself is void, meaning it hands nothing back to you, it just does the thing. it takes one argument, device_t dev, and off it goes πΈ
π DESCRIPTION π
so here's the tea, bestie π this function provides an implementation of the BUS_NEW_PASS(9) method, and it's specifically there for bus drivers to use. it's the generic version, so if you're a bus driver and you don't wanna write your own, this is your girl π«Ά
and the way it works is so satisfying, let me walk you through it:
- first up, it invokes the
DEVICE_IDENTIFY(9)method β but only for the drivers whose pass level is equal to the new pass level. not more, not less. equality. we're being precise here, periodt π - then it goes through every single child device. for each attached child device, it calls
BUS_NEW_PASS(9)so those child buses get rescanned π₯ - and for each unattached child device, it calls
device_probe_and_attach(9). probe 'em, attach 'em, slay β¨
that's the whole routine. identify, rescan, probe-and-attach. iconic behaviour honestly π
π SEE ALSO π
and that's a wrap, bestie π this lil page came to you from Debian, dated January 15, 2017 β shoutout to the kernel devs for keeping the pass levels in check so we don't have to π mwah, go read bus_set_pass(9) next, iykyk πΈπβ¨
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2009 Hudson River Trading LLC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms