pci_epc_get_features(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 with func_no will be returned 🎯
  • vfunc_no β€” the features supported by the EPC device specific to the virtual endpoint function with vfunc_no will be returned 🌈

⭐ SEE ALSO ⭐

the whole squad fr fr, plus the kernel file where the magic happens: ./drivers/pci/endpoint/pci-epc-core.c πŸ’œ


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