pldm_move_fw_offset(9)
π 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 asize_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) -EFAULTif the image is too small to fit the expected length π the image said "i have no room" and the function said "okay,-EFAULTthen."
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:
pldm_check_fw_space(9)pldm_parse_header(9)pldm_check_desc_tlv_len(9)pldm_parse_desc_tlvs(9)pldm_parse_one_record(9)pldm_parse_records(9)pldm_parse_components(9)pldm_verify_header_crc(9)pldmfw_free_priv(9)pldm_parse_image(9)pldmfw_op_pci_match_record(9)pldm_find_matching_record(9)pldm_send_package_data(9)pldm_send_component_tables(9)pldm_flash_components(9)pldm_finalize_update(9)pldmfw_flash_image(9)
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
- 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