pldm_for_each_component(9)
β¨ pldm_for_each_component(9) β¨
okay so bestie, welcome to the Kernel API Manual π
this one's a lil macro from the pldmfw corner of the kernel, and honestly? she's short but she's iconic π
πΈ NAME πΈ
pldm_for_each_component β literally the name up there bestie, the original page doesn't say more than that π
π¦ SYNOPSIS π¦
pldm_for_each_component (i , component , start , count );
π ARGUMENTS π
iβ a variable where you're gonna store the component index, like the little counter keeping track of where you're at π’componentβ a variable where you're gonna store the component pointer, so it's holding the actual thing you're looking at πstartβ the byte offset to the start of the first component β¨ offset from where? it's the byte offset to the start of the first component, that's the lore, don't come for mecountβ the number of components π
π§ DESCRIPTION π§
okay so picture this: it's a for loop macro π and what it does is iterate over all of the components of a PLDM file. that's it. that's the whole vibe. she's a loop macro, she loops, she goes over every component, periodt π
ngl if you've met her siblings (pldm_for_each_record, pldm_for_each_desc_tlv) you already know the family energy β same shape, different thing being iterated π«Ά
π SEE ALSO π
Kernel file ./lib/pldmfw/pldmfw_private.h and the whole friend group:
pldm_first_desc_tlv(9)pldm_next_desc_tlv(9)pldm_for_each_desc_tlv(9)pldm_first_record(9)pldm_next_record(9)pldm_for_each_record(9)pldm_first_component(9)pldm_next_component(9)
like, go read those too, they ate π₯
and that's the whole page, bestie ππ this lil cutie lives in ./lib/pldmfw and the page is dated October 2026 β go forth and loop responsibly, mwah ππ
π¦ 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