STRUCT PFRU_PAYLOAD_HDR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct pfru_payload_hdr(9) ✨

okay bestie, welcome to the Kernel API Manual β€” we're looking at struct pfru_payload_hdr today and honestly? it's giving backstage pass energy πŸŽ€

πŸ’– NAME πŸ’–

struct pfru_payload_hdr β€” the Capsule file payload header. yeah. that's it. that's the whole name. iconic of it tbh.


🌸 SYNOPSIS 🌸

here's the whole struct, copy-paste-able, no cap:

struct pfru_payload_hdr {
    __u32 sig;
    __u32 hdr_version;
    __u32 hdr_size;
    __u32 hw_ver;
    __u32 rt_ver;
    __u8 platform_id[16];
    __u32 svn_ver;
 };

lowkey love how platform_id is the only one with a size on it β€” it's the main character of this struct fr fr πŸ‘‘


πŸ¦‹ Members πŸ¦‹

let's go field by field, bestie, no skipping, we don't do that here πŸ’…

  • sig β€” the signature of this capsule file. like a little autograph so you know whose capsule it is ✨
  • hdr_version β€” the revision of this header structure. version check, but make it header-flavored πŸ’œ
  • hdr_size β€” the size of this header, and yes it includes the OemHeader bytes. don't forget those or the math will not math 😭
  • hw_ver β€” the supported firmware version. the hw one. we stan a version field that knows what it is 🫢
  • rt_ver β€” version of the code injection image. the rt one. very "different field, different job" of it 🌈
  • platform_id β€” a platform specific GUID that says which platform this capsule image supports. 16 bytes of pure platform-identity realness 🧚
okay so real talk β€” svn_ver shows up in the struct up there in the SYNOPSIS, but this page doesn't give it a Members entry anywhere. so we're not gonna invent one, bestie. it exists, it's __u32, and that's all the page is willing to tell us πŸ™ˆ no cap, don't make stuff up.

⭐ SEE ALSO ⭐

go read these next, they're all connected, iykyk πŸ’«


and that's the whole page, bestie, you ate that πŸ“

mwah β€” this one came from ./include/uapi/linux, dated October 2026, and it's filed under struct pfru_payload_hdr(9) in case you need to find it again. go forth and be iconic πŸ’œπŸ¦‹

πŸ“¦ where this page comes from