pci_epc_get...ources_count(9)
π pci_epc_get...ources_count(9) π
Hey bestie, welcome to the Kernel API Manual entry for pci_epc_get_aux_resources_count β the header shows pci_epc_get...ources_count(9), and the full name is right below. Letβs get into it π
πΈ NAME πΈ
pci_epc_get_aux_resources_count β get the number of EPC-provided auxiliary resources π
β¨ SYNOPSIS β¨
int pci_epc_get_aux_resources_count (struct pci_epc *epc , u8 func_no , u8 vfunc_no );
π¦ ARGUMENTS π¦
epcβ EPC device πfunc_noβ function numbervfunc_noβ virtual function number
π DESCRIPTION π
Okay so some EPC backends 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 queries how many such resources the backend provides. Thatβs the whole vibe β itβs giving βcount the aux resources for me, bestieβ energy β¨
π RETURN π
On success, you get the number of available resources. If the backend does not support auxiliary resource queries, you get -EOPNOTSUPP. Any other failure gives another -errno. No cap π
π₯ SEE ALSO π₯
Kernel file ./drivers/pci/endpoint/pci-epc-core.c is the spot to peek at, and hereβs the whole related squad:
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(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)
Cute little sign-off: this page comes from source/version ./drivers/pci/endpoint, dated October 2026, and the title is pci_epc_get...ources_count(9) πβ¨
π¦ 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