pldm_for_each_component(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 me
  • count β€” 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:

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