pcim_iounmap(9)
π pcim_iounmap(9) π
okay so this is a page straight out of the Kernel API Manual, and honestly? it's a little one but she matters. let's get into it β¨
πΈ NAME πΈ
pcim_iounmap β the managed version of pci_iounmap(), and yes she's the responsible one π«Ά
π SYNOPSIS π
void pcim_iounmap (struct pci_dev *pdev , void __iomem *addr );
π¦ ARGUMENTS π¦
pdevβ the PCI device you're doing the iounmap for. like, the whole reason this mapping exists πaddrβ the address you wanna unmap. bye bestie π
β DESCRIPTION β
So pcim_iounmap is the managed pci_iounmap(). that's the whole vibe. π§
β οΈ important caveat, no cap:addrmust have been mapped using one of thepcim_*mapping functions. like, don't just roll up with any random address, that's not the energy we're going for π
π SEE ALSO π
go check out the kernel file ./drivers/pci/devres.c β that's where the magic lives π
devm_pci_remap_iospace(9)devm_pci_remap_cfgspace(9)devm_pci_remap_cfg_resource(9)pcim_set_mwi(9)pcim_intx(9)pcim_enable_device(9)pcim_pin_device(9)pcim_iomap_table(9)pcim_iomap(9)pcim_iomap_region(9)pcim_iounmap_region(9)pcim_iomap_regions(9)pcim_request_region(9)pcim_release_region(9)pcim_release_all_regions(9)pcim_request_all_regions(9)pcim_iomap_range(9)
like, the whole pcim_* friend group fr fr π
that's the page!! mwah π this came from ./drivers/pci and it's dated October 2026 β stay unmap-ped and stay iconic, 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