usb_hcd_pci_probe(9)
π usb_hcd_pci_probe(9) π
okay so bestie, welcome to the kernel API manual page for usb_hcd_pci_probe β she's a function, she lives in the PCI/HCD corner of the USB world, and honestly? she's kind of the main character of bringing a USB host controller to life. β¨
πΈ NAME πΈ
usb_hcd_pci_probe β literally the function that initializes PCI-based HCDs. that's it, that's the vibe. π
π¦ SYNOPSIS π¦
int usb_hcd_pci_probe (struct pci_dev *dev , const struct hc_driver
*driver );
yes the signature is exactly that, no cap, copy it character for character if you're typing it out, okay? π
π ARGUMENTS π
devβ the USB Host Controller that's being probed rn π like this is the device we're checking out.driverβ the USB HC driver handle. the little handle that says "hi, this is the driver I'm working with" π«Ά
β CONTEXT β
runs in task context, and heads up β it might sleep π΄ so don't go calling it from somewhere spicy where sleeping is not allowed. it's giving "chill, we have time" energy, not "atomic, no interruptions" energy. π
π₯ DESCRIPTION π₯
so what does she actually do? she allocates the basic PCI resources for this USB host controller β like, sets up the essentials, gets the foundation right β and then she invokes the start method for the HCD associated with it through the hotplug entry's driver_data. yes, that's the whole pipeline, and she ate. π
and here's the important bit bestie, don't miss it: store this function in the HCD's struct pci_driver as probe. that's literally how it gets wired up. that's the assignment. write it down. π
π RETURN π
returns 0 if successful. that's the only thing listed, so if you see a 0, it slayed. π
π SEE ALSO π
- Kernel file
./drivers/usb/core/hcd-pci.c usb_hcd_pci_remove(9)usb_hcd_pci_shutdown(9)
go read the whole friend group, iykyk π§
fr fr take the context warning seriously β task context, might sleep is not a suggestion, it's a whole boundary. π
okay that's the page!! mwah π this one lives in ./drivers/usb/core, it's from the Kernel API Manual, dated October 2026, and the page itself is usb_hcd_pci_probe(9) β go be iconic with your PCI-based HCD initialization bestie!! πΈπ
π¦
π¦ 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