pci_epc_mem_unmap(9)
π pci_epc_mem_unmap(9) π
okay bestie, welcome to the Kernel API Manual, and today's main character is pci_epc_mem_unmap β the cleanup queen. She unmaps AND frees a CPU address region. That's it. That's her whole vibe. β¨
β¨ SYNOPSIS β¨
void pci_epc_mem_unmap (struct pci_epc *epc , u8 func_no , u8 vfunc_no ,
struct pci_epc_map *map );
returns nothing, void, because she's done after this, no notes π
πΈ ARGUMENTS πΈ
epcβ the EPC device on which the CPU address is allocated and mapped. like, the whole venue for this operation π«Άfunc_noβ the physical endpoint function number in the EPC device. lowkey important, this is the real one πvfunc_noβ the virtual endpoint function number in the physical function. the virtual lil sibling offunc_noπ¦mapβ the mapping information. she's literally carrying all the receipts of what got mapped π
π DESCRIPTION π
Here's the tea, bestie: this function unmaps and frees a CPU address region that was allocated and mapped with pci_epc_mem_map. it's giving cleanup era. you map it, you unmap it, balance is restored to the universe π
no cap, she only takes care of stuff that pci_epc_mem_map set up β she's not out here cleaning up random addresses, so know your source π
π¦ SEE ALSO π¦
Kernel file ./drivers/pci/endpoint/pci-epc-core.c β and honestly the whole friend group:
pci_epc_put(9)pci_epc_get(9)pci_epc_get_first_free_bar(9)pci_epc_get_next_free_bar(9)pci_epc_get_features(9)pci_epc_get_aux_resources_count(9)pci_epc_get_aux_resources(9)pci_epc_stop(9)pci_epc_start(9)pci_epc_raise_irq(9)pci_epc_map_msi_irq(9)pci_epc_get_msi(9)pci_epc_set_msi(9)pci_epc_get_msix(9)pci_epc_set_msix(9)pci_epc_unmap_addr(9)pci_epc_map_addr(9)pci_epc_mem_map(9)pci_epc_clear_bar(9)pci_epc_set_bar(9)pci_epc_bar_size_to_rebar_cap(9)pci_epc_write_header(9)pci_epc_add_epf(9)pci_epc_remove_epf(9)pci_epc_linkup(9)pci_epc_linkdown(9)pci_epc_init_notify(9)pci_epc_notify_pending_init(9)pci_epc_deinit_notify(9)pci_epc_bus_master_enable_notify(9)pci_epc_destroy(9)__pci_epc_create(9)__devm_pci_epc_create(9)
and that's the whole page, bestie!! π this one lives in ./drivers/pci/endpoint and the version/date stamp on it is October 2026 β iconic, timeless, obsessed. go forth and unmap responsibly β¨ππ¦
π¦ 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