pci_epc_get_aux_resources(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 ngl
  • func_no β€” function number, the u8 bestie
  • vfunc_no β€” virtual function number, also u8, also iconic
  • resources β€” output array, where the good stuff gets written πŸ’–
  • num_resources β€” size of resources array 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 πŸ”₯

  • 0 on success β€” slay πŸ’…
  • -EOPNOTSUPP if the backend does not support auxiliary resource queries β€” so like, not every backend is built for this, and that's okay 🫢
  • or another -errno on failure β€” 😭 happens to the best of us

πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./drivers/pci/endpoint/pci-epc-core.c, and like, the whole friend group:


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