cdnsp_find_next_ext_cap(9)
π cdnsp_find_next_ext_cap(9) π
okay so bestie, this is a page from the Kernel API Manual and honestly it's giving "small function, big main character energy" β it's literally called cdnsp_find_next_ext_cap and it's about finding extended capabilities. stay with me, it slays π₯
β¨ NAME β¨
cdnsp_find_next_ext_cap β find the offset of the extended capabilities with capability ID id. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
int cdnsp_find_next_ext_cap (void __iomem *base , u32 start , int id );
look at her go π«Ά
π¦ ARGUMENTS π¦
baseβ the PCI MMIO registers base address. this is your starting address, the foundation of the whole operation, the moment before everything else happens β¨startβ the address at which to start looking, and yes it's(0 or HCC_PARAMS to start at beginning of list)β so if you wanna start from the very top of the list, that's your move, iykyk πidβ the extended capability ID to search for. this is the thing you're hunting for, the whole reason you're here fr fr π
π DESCRIPTION π
so what does she actually do? she returns the offset of the next matching extended capability structure. that's the whole thing. no cap β¨
and here's the part that's lowkey iconic: some capabilities can occur several times, e.g., the EXT_CAPS_PROTOCOL, and this provides a way to find them all. so instead of just grabbing the first one and calling it a day, you can keep calling this and collect the whole set like little pokΓ©mon π
literally obsessed with the reusability of it all π
π₯ SEE ALSO π₯
- Kernel file
./drivers/usb/cdns3/cdnsp-gadget.ccdnsp_gadget_init(9)β go read the neighbors, they're part of the friend group too π«Ά
and that's the page bestie!! it comes to you from ./drivers/usb/cdns3, dated October 2026 β so mark your calendar, screenshot this, send it to the group chat, and remember: the extended capabilities were inside you all along ππ§β¨
π¦ 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