comedi_to_pci_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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