pci_epc_get...ources_count(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 number
  • vfunc_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:


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