pdc_pat_io_pci_cfg_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pdc_pat_io_pci_cfg_read β€” Kernel API Manual energy ✨

Okay bestie, so this one's from the Kernel API Manual and it's literally called pdc_pat_io_pci_cfg_read (say that five times fast, I dare you 🫢). It's giving "I read PCI configuration space" and honestly? Iconic.


✨ NAME ✨

pdc_pat_io_pci_cfg_read β€” read PCI configuration space. That's it, that's the whole vibe. No cap. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int pdc_pat_io_pci_cfg_read (unsigned long pci_addr , int pci_size , u32
*mem_addr );

Like, look at her. Three little params and a int return. Main character energy fr fr. πŸ’œ


🌸 ARGUMENTS 🌸

  • pci_addr β€” the PCI configuration space address you're requesting a read for. It's unsigned long, it's important, it's the "where" of the whole operation. Slay. ✨
  • pci_size β€” how big the read is, in bytes. Valid values are literally only 1, 2, and 4. Not 3. Not 8. Bestie, don't try it. πŸ™ˆ
  • mem_addr β€” pointer to the return memory buffer. That's where the data lands. u32 *, the whole point, the moment. πŸ’–

πŸ‘‘ SEE ALSO πŸ‘‘

So there's a whole squad of kernel file ./arch/parisc/kernel/firmware.c besties and you should lowkey know them all:

Like, that's the whole group chat right there. Read one, read 'em all. 🫢


Bestie PSA 🚨: pci_size only takes 1, 2, or 4. Anything else is not the vibe and the docs are not here for it.

Kisses from ./arch/parisc/kernel, dated October 2026 β€” mwah πŸ’‹βœ¨ go read some PCI config space, you absolute icon πŸ‘‘πŸ’…

πŸ“¦ where this page comes from