dw_pcie_ep_get_func_from_ep(9)
π dw_pcie_ep_get_func_from_ep β a Kernel API Manual moment
okay so bestie, welcome to the Kernel API Manual page for dw_pcie_ep_get_func_from_ep(9) π this one's short and sweet and honestly kind of iconic for it.
β¨ NAME β¨
dw_pcie_ep_get_func_from_ep β grab the struct dw_pcie_ep_func that corresponds to the endpoint function π like, you've got an endpoint function number, you want the struct that goes with it, this is the little matchmaker that hooks you up. π«Ά
πΈ SYNOPSIS πΈ
struct dw_pcie_ep_func * dw_pcie_ep_get_func_from_ep (struct dw_pcie_ep
*ep , u8 func_no );
no cap, that's the whole signature. takes two things, hands you a pointer. π
π¦ ARGUMENTS π¦
epβ the DWC EP device π your designware endpoint device, the main character of this whole operation.func_noβ the function number of the endpoint device π₯ yep, just the number, that's the lookup key bestie.
β RETURN β
gives you back a struct dw_pcie_ep_func if it succeeds π and NULL otherwise π β so fr fr, check for the NULL, it's giving "I might not find your function" energy.
π SEE ALSO π
the kernel file this lives in, for the curious girlies who like to read the source:
./drivers/pci/controller/dwc/pcie-designware-ep.c
and the whole friend group of related calls, all here so you can go down the rabbit hole π:
dw_pcie_ep_reset_bar(9)dw_pcie_ep_raise_intx_irq(9)dw_pcie_ep_raise_msi_irq(9)dw_pcie_ep_raise_msix_irq_doorbell(9)dw_pcie_ep_raise_msix_irq(9)dw_pcie_ep_cleanup(9)dw_pcie_ep_deinit(9)dw_pcie_ep_init_registers(9)dw_pcie_ep_linkup(9)dw_pcie_ep_linkdown(9)dw_pcie_ep_init(9)
π friendly reminder bestie: this page is a kernel-API-flavoured one, so the details are exactly what they are β no invented behaviour, no extra tips, just the facts wrapped in bows. π
okay that's the whole thing, mwah π β sourced from ./drivers/pci/controller/dwc, dated October 2026, and yes the page you just read is literally called dw_pcie_ep_get_func_from_ep(9) π
β¨ slay.
π¦ 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