comedi_pci_auto_config(9)
π NAME π
okay so bestie, this is the <pink>comedi_pci_auto_config(9)</pink> page from the Kernel API Manual, and it's all about <rainbow>comedi_pci_auto_config</rainbow> β Configure/probe a PCI COMEDI device β¨π
β¨ SYNOPSIS β¨
int comedi_pci_auto_config (struct pci_dev *pcidev , struct
comedi_driver *driver , unsigned long context );
That signature is giving very much kernel-core, no cap π«Ά
π ARGUMENTS π
pcidevβ PCI device. π₯οΈπdriverβ Registered COMEDI driver. πcontextβ Driver specific data, passed tocomedi_auto_config. π§Ί
π¦ DESCRIPTION π¦
So here's the tea: this is typically called from the pci_driver (*probe) function. π«‘ It auto-configures a COMEDI device, using the struct device embedded in *pcidev as the hardware device.
The context value gets passed through to the driver's "auto_attach" handler. That "auto_attach" handler may call comedi_to_pci_dev on the passed in COMEDI device to recover pcidev. literally iconic wiring, iykyk π₯
π₯ RETURN π₯
It returns the result of calling comedi_auto_config β 0 on success, or a negative error number on failure π. That's the whole vibe check, fr fr.
π SEE ALSO π
Kernel file ./drivers/comedi/comedi_pci.c π
comedi_to_pci_dev(9)comedi_pci_enable(9)comedi_pci_disable(9)comedi_pci_detach(9)comedi_pci_auto_unconfig(9)comedi_pci_driver_register(9)comedi_pci_driver_unregister(9)
mwah π this page's cute little sign-off is brought to you by the source/version tag ./drivers/comedi, dated October 2026 β stay comedi-fied, 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