BUS_RESCAN(9)
π BUS_RESCAN(9) π
okay so bestie, welcome to the Kernel Developer's Manual page for BUS_RESCAN(9). it's giving bus-rescan main character energy, and honestly? iconic. π
β¨ NAME β¨
BUS_RESCAN β rescan a bus checking for devices that have been added or removed. no cap, that's literally the whole name vibe. π¦
πΈ SYNOPSIS πΈ
#include <sys/param.h>
#include <sys/bus.h>
void
BUS_RESCAN(device_t dev);
so yeah, you include those headers, then call BUS_RESCAN(device_t dev), and it returns void. simple. slay. β¨
π DESCRIPTION π
The BUS_RESCAN() method is called to request a rescan of the child devices on a bus device. it's basically the bus saying "hey, who's new and who left?" π«Ά
The method should add any devices that have been added since the previous scan and remove devices that have been removed. so if a device showed up since last time, add it; if it ghosted, remove it. periodt. π
Important caveat, bestie: this method is not required to re-examine existing devices to determine if their properties have changed. so don't expect it to do a whole deep dive on devices that were already there. π
Another one: this method is also not required to propagate the rescan request to child devices. so it's not obligated to pass that request down the chain. π
π SEE ALSO π
device(9)β go read that one too, bestie, it's part of the lore. π
xoxo π source/version: Debian β date: April 27, 2016 β page: BUS_RESCAN(9). mwah π
π¦ 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) 2016 John H. Baldwin <jhb@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms