devm_pci_remap_cfgspace(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ¦‹


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