pci_epc_put(9)
π pci_epc_put(9) β the Kernel API Manual, bestie edition β¨
okay so this is a page from the Kernel API Manual (yep, pci_epc_put(9), we're literally in the kernel docs rn) and it's about giving back a PCI endpoint controller when you're done with it π
πΈ NAME πΈ
pci_epc_put β release the PCI endpoint controller π«Ά
β¨ SYNOPSIS β¨
void pci_epc_put (struct pci_epc *epc );
π¦ ARGUMENTS π¦
epcβ theepcthatpci_epc_gethanded you. yeah. that one. the one you already got π
π DESCRIPTION π
so basically it releases the refcount that the caller obtained by invoking pci_epc_get. that's it. that's the whole vibe. you got it, now you put it back, balance is restored, the universe is at peace β¨ no cap, this is the "put your shopping cart back" of the kernel π
π SEE ALSO π
the whole friend group π and also the kernel file ./drivers/pci/endpoint/pci-epc-core.c:
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_mem_unmap(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, go put your epc back π
sign-off szn π this one lives at ./drivers/pci/endpoint, dated October 2026, and it's page pci_epc_put(9) of the Kernel API Manual β mwah π
π¦ 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