usb_hcd_pci_remove(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🌈


This lil page comes from ./drivers/usb/core, dated October 2026 β€” iconic source, iconic date, mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from