pci_epc_get_aux_resources(9)
π pci_epc_get_aux_resources(9) β like, the whole Kernel API Manual page, bestie
okay so this is pci_epc_get_aux_resources from the Kernel API Manual and it's literally the glow-up you need for querying EPC-provided auxiliary resources. no cap, it's a whole vibe. π¦
β¨ NAME β¨
pci_epc_get_aux_resources β query EPC-provided auxiliary resources
πΈ SYNOPSIS πΈ
int pci_epc_get_aux_resources (struct pci_epc *epc , u8 func_no , u8
vfunc_no , struct pci_epc_aux_resource *resources , int num_resources );
π ARGUMENTS π
epcβ the EPC device itself, the main character of this whole function nglfunc_noβ function number, theu8bestievfunc_noβ virtual function number, alsou8, also iconicresourcesβ output array, where the good stuff gets written πnum_resourcesβ size ofresourcesarray in entries, so like, how much room you've got
π DESCRIPTION π
so some EPC backends lowkey integrate auxiliary blocks (e.g. DMA engines) π§ whose control registers and/or descriptor memories can be exposed to the host by mapping them into BAR space. this helper right here queries the backend for such resources. that's it, that's the whole job, and it ate. β¨
π₯ RETURN π₯
0on success β slay π-EOPNOTSUPPif the backend does not support auxiliary resource queries β so like, not every backend is built for this, and that's okay π«Ά- or another
-errnoon failure β π happens to the best of us
π SEE ALSO π
kernel file ./drivers/pci/endpoint/pci-epc-core.c, and like, 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_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!! π it lives in ./drivers/pci/endpoint, dated October 2026, and it's pci_epc_get_aux_resources(9) β go forth and query those auxiliary resources, iykyk ππβ
π¦ 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