devm_pci_remap_cfgspace(9)
β¨ NAME β¨
devm_pci_remap_cfgspace β the managed pci_remap_cfgspace(), and yes bestie, it's giving "I clean up after myself" energy π
Okay so you're on the devm_pci_remap_cfgspace(9) page in the Kernel API Manual, and this is the device-managed remap situation. Grab your struct device * and let's get into it π«Ά
π SYNOPSIS π
void __iomem * devm_pci_remap_cfgspace (struct device *dev ,
resource_size_t offset , resource_size_t size );
π ARGUMENTS π
devβ the generic device to remap the IO address for. That's the whole vibe β¨offsetβ the resource address to map. Literally the "where" of it all πsizeβ the size of the map. Gotta know how much space we're working with, no cap π
π DESCRIPTION π
Managed pci_remap_cfgspace. The map is automatically unmapped on driver detach β cleanup is handled, and that is lowkey iconic π§
π¦ SEE ALSO π¦
Kernel file ./drivers/pci/devres.cβ the kernel file to peek at, bestie πdevm_pci_remap_iospace(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_iounmap(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)
Later, bestie π This page came from ./drivers/pci, dated October 2026, and it's filed under devm_pci_remap_cfgspace(9). Slay and happy hacking β¨π
π¦ 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