pcie_walk_rcec(9)
π pcie_walk_rcec(9) π
okay so bestie, welcome to the Kernel API Manual β today's main character is pcie_walk_rcec(9) and honestly? she's a little recursive road-trip through your RCiEP devices. buckle up π
β¨ NAME β¨
pcie_walk_rcec β walk RCiEP devices associating with RCEC and call callback.
like, literally that. walk the devices, call the callback. no cap. π¦
πΈ SYNOPSIS πΈ
void pcie_walk_rcec (struct pci_dev *rcec , int (*cb)(struct pci_dev *,
void *) , void *userdata );
yes she takes a function pointer, yes that's iconic, yes you're gonna need to actually read the args π
π ARGUMENTS π
rcecβ the RCEC whose RCiEP devices should be walked. she's the one holding the map πΊοΈcbβ callback to be called for each RCiEP device found. one call per device, no skipping, fr fr πuserdataβ arbitrary pointer to be passed to callback. literally whatever you want, she won't judge π«Ά
π§ DESCRIPTION π§
Walk the given RCEC. Call the callback on each RCiEP found. that's the whole vibe β¨
If cb returns anything other than 0, break out. that's your escape hatch, use it wisely π
ngl, "anything other than 0" means anything β that's your bail signal, bestie. don't sleep on it.
π₯ SEE ALSO π₯
- Kernel file
./drivers/pci/pcie/rcec.c pcie_link_rcec(9)
go read the source, it's giving "the real documentation was the code we read along the way" ππ
and that's the whole page, periodt π β brought to you by the fine folks over in ./drivers/pci/pcie, dated October 2026, straight from the Kernel API Manual. mwah, ily, go walk some devices π
πβ
π¦ 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