comedi_to_pci_dev(9)
β¨ comedi_to_pci_dev(9) β Kernel API Manual β¨
okay bestie, welcome to the comedi_to_pci_dev(9) page from the Kernel API Manual β itβs the tiny helper that gets you the PCI device attached to a COMEDI device, and itβs giving βone job, done correctly.β π
πΈ NAME πΈ
comedi_to_pci_dev β get the PCI device attached to a COMEDI device
π¦ SYNOPSIS π¦
struct pci_dev * comedi_to_pci_dev (struct comedi_device *dev );
π ARGUMENTS π
devβ COMEDI device.
β¨ DESCRIPTION β¨
So the deal is: assuming dev->hw_dev is non-NULL, it is assumed to be pointing to a a struct device embedded in a struct pci_dev. Yes, the βa aβ is literally in the original β weβre preserving the lore, no cap. π
π RETURN π
Attached PCI device if dev->hw_dev is non-NULL. Return NULL if dev->hw_dev is NULL.
π SEE ALSO π
Kernel file ./drivers/comedi/comedi_pci.c, plus these iconic functions: comedi_pci_enable(9), comedi_pci_disable(9), comedi_pci_detach(9), comedi_pci_auto_config(9), comedi_pci_auto_unconfig(9), comedi_pci_driver_register(9), comedi_pci_driver_unregister(9).
Thatβs the whole page, bestie! π
Source/version: ./drivers/comedi; date: October 2026; page: comedi_to_pci_dev(9). Slay and read responsibly. π«Άβ¨
π¦ 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