pldm_check_desc_tlv_len(9)
π pldm_check_desc_tlv_len(9) β from the Kernel API Manual, bestie β¨
okay so real talk, this one lives in the kernel API manual and it's called pldm_check_desc_tlv_len(9). she's a little length-checker and honestly? she ate. let's get into it π
β¨ NAME β¨
pldm_check_desc_tlv_len β check that the length matches expectation π¦
like literally, that's the whole personality. she checks lengths. that's it. that's the gig.
πΈ SYNOPSIS πΈ
int pldm_check_desc_tlv_len (struct pldmfw_priv *data , u16 type , u16 size );
π ARGUMENTS π
dataβ pointer to the image details π like, all the context she needs to do her thing.typeβ the descriptor type, iykyk π§sizeβ the length straight out of the descriptor header, no cap π
π DESCRIPTION π
so here's the vibe check: if the descriptor type is one of the documented descriptor types according to the standard, she goes ahead and verifies that the length you handed her actually matches. periodt. β¨
but if the type is not recognized, or if it's VENDOR_DEFINED? she just returns zero and moves on with her life π no drama, no fuss, lowkey iconic.
β RETURN β
zeroon success π«Ά-EINVALif the specified size of a standard TLV does not match the expected value defined for that TLV π like it's giving mismatch, and she is not here for it.
π₯ SEE ALSO π₯
kernel file ./lib/pldmfw/pldmfw.c, plus the whole friend group:
pldm_check_fw_space(9)pldm_move_fw_offset(9)pldm_parse_header(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)
ngl bestie, read them all. they're a package deal π
and that's the whole page, mwah π shoutout to ./lib/pldmfw, the October 2026 edition, and obviously pldm_check_desc_tlv_len(9) herself β main character energy only πππ¦
π¦ 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