__pci_register_driver(9)
πΈ NAME πΈ
__pci_register_driver β register a new pci driver
okay bestie, welcome to the Kernel API Manual page for __pci_register_driver(9) β¨ this one is lowkey a main character in the PCI driver registration world.
β¨ SYNOPSIS β¨
int __pci_register_driver (struct pci_driver *drv , struct module *owner
, const char *mod_name );
π ARGUMENTS π
drvβ the driver structure to register. this is the struct you're bringing to the function, fr fr.ownerβ owner module ofdrv. like, whose module is this? πmod_nameβ module name string. just the name, bestie.
π DESCRIPTION π
okay so what does it actually do? it adds the driver structure to the list of registered drivers. that's the whole vibe β
it returns a negative value on error, otherwise 0. no error means it's a slay.
and listen: if no error occurred, the driver remains registered even if no device was claimed during registration. so yes, it can stay on the list even when no device got claimed β that's literally in the spec, don't shoot the messenger π
π¦ SEE ALSO π¦
Kernel file ./drivers/pci/pci-driver.c is right there in the see-also zone. also go peek at:
do_pci_add_dynid(9)pci_add_dynid(9)do_pci_match_id(9)pci_match_id(9)pci_match_device(9)new_id_store(9)remove_id_store(9)__pci_device_probe(9)pci_restore_standard_config(9)pci_unregister_driver(9)pci_dev_driver(9)pci_bus_match(9)pci_dev_get(9)pci_dev_put(9)pci_uevent_ers(9)pci_dma_configure(9)
xoxo bestie π
β sourced from ./drivers/pci, dated October 2026, and filed under __pci_register_driver(9) π«Άβ¨
π¦ 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