pldm_move_fw_offset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pldm_move_fw_offset(9) β€” like, the Kernel API Manual page, bestie

okay so you found the man page for pldm_move_fw_offset and honestly? it's a little baby function with main character energy. it does exactly one thing and it does it slayfully: it moves the current firmware offset forward. that's it. that's the whole vibe. periodt. ✨


🌸 NAME 🌸

pldm_move_fw_offset β€” Move the current firmware offset forward πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

int pldm_move_fw_offset (struct pldmfw_priv *data , size_t bytes_to_move
);

yes bestie, that's the whole signature, no cap. it hands you back an int and takes two things. let's get into them πŸ’–


✨ ARGUMENTS ✨

  • data β€” pointer to private data 🀫 like, the internal stuff, the private data, the iykyk data. you don't poke at it, you just pass it along.
  • bytes_to_move β€” number of bytes to move the offset forward by πŸ¦‹ that's literally it, that's the number, it's a size_t, she's doing her best.

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea β˜•: this function first checks that there's enough space past the current offset, and then it moves the offset forward by bytes_to_move. that's the whole flow. check first, move second. it's giving responsible. it's giving "i looked before i leapt." we love a cautious icon πŸ‘‘

so like, the order actually matters here β€” it's not just gonna blindly yeet the offset forward and hope for the best. it verifies there's room, and only then does the moving. slay 🌈


πŸ”₯ RETURN πŸ”₯

  • zero on success πŸŽ‰ (yes, 0, the good ending, the happy little number)
  • -EFAULT if the image is too small to fit the expected length 😭 the image said "i have no room" and the function said "okay, -EFAULT then."
ngl if you get -EFAULT here, your image is too small for the expected length. that's the whole warning. don't shoot the messenger πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

so there's a whole squad of pldmfw functions and this one is absolutely not solo-ing. Kernel file ./lib/pldmfw/pldmfw.c β€” that's where the family lives 🏠 and here's everyone:

like, seventeen friends. seventeen!! the friend group is thriving πŸ’– go read them too, bestie, mutuals support mutuals 🫢


okay that's the whole page, you ate that πŸ“ this lil corner of the manual lives in ./lib/pldmfw and it's dated October 2026 β€” mwah, sending you off with a kiss and a -EFAULT-free day πŸ’‹βœ¨

πŸ“¦ where this page comes from