comedi_pci_enable(9)
πΈ NAME πΈ
okay so this page is from the Kernel API Manual, and the main character is comedi_pci_enable β Enable the PCI device and request the regions. literally what it says on the tin, bestie π
β¨ SYNOPSIS β¨
int comedi_pci_enable (struct comedi_device *dev );
π ARGUMENTS π
devβ COMEDI device. thatβs the whole argument, sheβs simple π«Ά
π DESCRIPTION π
Assuming dev->hw_dev is non-NULL, itβs assumed to be pointing to a struct device embedded in a struct pci_dev. bestie, we are enabling the PCI device and requesting its regions β¨
Set dev->ioenabled to true if it worked, otherwise undo what was done. no cap, thatβs the vibe.
Calls to comedi_pci_enable and comedi_pci_disable cannot be nested. periodt. π
π RETURN π
0on success β slay-ENODEVifdev->hw_devisNULLβ not me getting no device π-EBUSYif regions busy β busy era, blocked π- or some negative error number if it failed to enable the PCI device
π¦ SEE ALSO π¦
Kernel file ./drivers/comedi/comedi_pci.c plus these iconique references:
comedi_to_pci_dev(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 tea from ./drivers/comedi, dated October 2026, for comedi_pci_enable(9) β stay slay, mwah πβ¨
π¦ 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