usb_deregister_bus(9)
π usb_deregister_bus (9) β Kernel API Manual β¨
okay so bestie, welcome to the Kernel API Manual, section 9 π. Today's main character is usb_deregister_bus β the function that says "girl, you're done here" to a USB host controller π.
πΈ NAME πΈ
usb_deregister_bus β deregisters the USB host controller π
β¨ SYNOPSIS β¨
void usb_deregister_bus (struct usb_bus *bus );
like, that's the whole signature. no return value, no drama, just void and vibes π¦
π«Ά ARGUMENTS π«Ά
busβ pointer to the bus to deregister. yes queen, that's the one you're yeeting out of the system π
β° CONTEXT β°
task context, and β important β might sleep π΄. so do NOT call this from somewhere that can't handle a lil nap, iykyk. fr fr, respect the sleep.
π DESCRIPTION π
so what does it actually do? two iconic things:
- recycles the bus number β»οΈ (that number is free real estate for the next bus now)
- unlinks the controller from usbcore data structures so that it won't be seen by scanning the bus list π«π
basically the controller gets quietly removed from the group chat so nobody scanning the bus list is gonna find it anymore. lowkey ghosting, but make it kernel-level πβ¨
π₯ SEE ALSO π₯
Kernel file ./drivers/usb/core/hcd.c β that's the source file this whole situation lives in π§ plus, bestie, a whole friend group of related reads:
ascii2desc(9)rh_string(9)usb_bus_init(9)usb_register_bus(9)register_root_hub(9)usb_calc_bus_time(9)usb_hcd_link_urb_to_ep(9)usb_hcd_check_unlink_urb(9)usb_hcd_unlink_urb_from_ep(9)usb_hcd_giveback_urb(9)usb_hcd_alloc_bandwidth(9)usb_hcd_reset_endpoint(9)usb_alloc_streams(9)usb_free_streams(9)usb_hcd_resume_root_hub(9)usb_bus_start_enum(9)usb_hcd_irq(9)usb_hc_died(9)usb_create_shared_hcd(9)usb_create_hcd(9)usb_stop_hcd(9)usb_add_hcd(9)usb_remove_hcd(9)
like, that's the whole USB HCD cinematic universe π go read usb_register_bus(9) if you want the before-and-after, it's giving sequel energy π¬
and that's the page, bestie! π«Ά mwah π
this little gem comes to you from ./drivers/usb/core (the source/version, yes she lives there π‘) and it's dated October 2026 β β so mark your calendar, screenshot it, put it on the fridge, periodt π
π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms