pci_epc_get_features(9)
π NAME π
okay bestie, listen up: pci_epc_get_features β it gets the features supported by the EPC β¨ (yes, that's the whole vibe, but stick around, there's lore)
This lil page lives in the Kernel API Manual, and it's lowkey one of the most useful calls in the whole EPC friend group π«Ά
πΈ SYNOPSIS πΈ
const struct pci_epc_features * pci_epc_get_features (struct pci_epc
*epc , u8 func_no , u8 vfunc_no );
no cap, that's the exact signature β copy it character for character or the compiler will absolutely humble you π
π DESCRIPTION π
So the whole point: you invoke this to get the features provided by the EPC, which may be specific to an endpoint function π
It returns pci_epc_features on success, and NULL for any failures. that's it. that's the deal. NULL means something went wrong, so maybe don't dereference it unless you enjoy chaos π
π¦ ARGUMENTS π¦
epcβ the features supported by this EPC device will be returned. like, this one. main character EPC only πfunc_noβ the features supported by the EPC device specific to the endpoint function withfunc_nowill be returned π―vfunc_noβ the features supported by the EPC device specific to the virtual endpoint function withvfunc_nowill be returned π
β SEE ALSO β
the whole squad fr fr, plus the kernel file where the magic happens: ./drivers/pci/endpoint/pci-epc-core.c π
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_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 π§ this little icon came from ./drivers/pci/endpoint, dated October 2026 β write it in your notes, put it on your vision board, whatever, just remember the date ππ 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