pldm_first_desc_tlv(9)
π NAME π
pldm_first_desc_tlv β and bestie, I'm gonna be so real with you, the official description here is literally blank. Empty. Nothing. The manpage author said "the name says it all" and clocked out π so we're just gonna have to find out what it does together. It lives in section 9 of the Kernel API Manual, iykyk.
β¨ SYNOPSIS β¨
pldm_first_desc_tlv (start );
(yes, that's the exact spacing, don't come for me, I copy-paste faithfully π )
π ARGUMENTS π
startβ the byte offset of the start of the descriptor TLVs, like, the address where the descriptor party kicks off π
π¦ DESCRIPTION π¦
Okay so here's the whole vibe: you hand it start, which is an offset β just a number, a position in the byte stream, lowkey not that useful on its own ngl β and it converts that starting offset of the descriptor TLVs into an actual pointer to the first descriptor. So you go from "the number 42-ish" to "a real thing you can dereference." It's giving glow-up. It's giving offset-to-pointer pipeline. Obsessed π«Ά
That's genuinely the entire function. Small but iconic, main character energy in like four lines of C. Periodt π
π SEE ALSO π
Head on over to the kernel file ./lib/pldmfw/pldmfw_private.h for the whole squad β the descriptor crew, the record crew, and the component crew:
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)pldm_for_each_component(9)
Every first / next / for_each trio you could ever need, no cap π₯
And that's the whole page, bestie!! Source: ./lib/pldmfw, dated October 2026 β so mark your calendars, future tech ππΈ Mwah, go read some more manpages, ily π§π
π¦ 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