pci_epc_get(9)
π NAME π
pci_epc_get β bestie, this is how you grab the PCI endpoint controller β¨
π SYNOPSIS π
struct pci_epc * pci_epc_get (const char *epc_name );
πΈ ARGUMENTS πΈ
epc_nameβ the device name of the endpoint controller, iykyk π it's literally the name you use to look it up
π¦ DESCRIPTION π¦
Okay so picture this: you invoke pci_epc_get and it hands you back the struct pci_epc * that corresponds to the device name of the endpoint controller. That's it, that's the whole vibe π«Ά like, name goes in, pointer comes out, main character energy fr fr.
π SEE ALSO π
Lowkey the whole friend group lives in the kernel file ./drivers/pci/endpoint/pci-epc-core.c β go say hi to the siblings:
pci_epc_put(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)
okay that's the whole page bestie, go touch grass (or a PCI endpoint) π
this lil masterpiece came from ./drivers/pci/endpoint, dated October 2026, and it's part of the Kernel API Manual β pci_epc_get(9) era, periodt π
π¦ 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