usb_hcd_pci_remove(9)
π usb_hcd_pci_remove(9) π
okay bestie, this page is from the Kernel API Manual, and itβs all about the shutdown-processing era of PCI-based HCDs. Letβs get into it, no cap β¨
β¨ NAME β¨
usb_hcd_pci_removeβ shutdown processing for PCI-based HCDs π
π SYNOPSIS π
void usb_hcd_pci_remove (struct pci_dev *dev );
π¦ ARGUMENTS π¦
devβ the USB Host Controller thatβs being removed π«Ά
πΈ CONTEXT πΈ
It runs in task context, and it might sleep π΄ β so like, plan accordingly, bestie.
π DESCRIPTION π
This function is the reverse of usb_hcd_pci_probe, and it kicks things off by invoking the HCDβs stop method. Literally undoing the probeβs whole moment, periodt π₯
Itβs always called from a thread context β normally rmmod, apmd, or something similar. iykyk π
Store this function in the HCDβs struct pci_driver as remove. Thatβs the assignment, and it ate π
π SEE ALSO π
- Kernel file
./drivers/usb/core/hcd-pci.c usb_hcd_pci_probe(9)usb_hcd_pci_shutdown(9)
This lil page comes from ./drivers/usb/core, dated October 2026 β iconic source, iconic date, mwah ππ
π¦ 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