STRUCT NVME_TCP_HDR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct nvme_tcp_hdr(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this one's a lil struct from the kernel side of things β€” section 9, kernel-API territory β€” and it's literally the common header for nvme tcp pdus. tiny struct, big main character energy πŸ‘‘


🌸 NAME 🌸

struct nvme_tcp_hdr β€” the nvme tcp pdu common header, aka the lil envelope every pdu wears πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct nvme_tcp_hdr {
    __u8 type;
    __u8 flags;
    __u8 hlen;
    __u8 pdo;
    __le32 plen;
 };
ngl that trailing }; is spaced exactly like the original β€” copy it verbatim, don't "fix" it, we don't do that here πŸ’…

πŸ’œ Members πŸ’œ

  • type β€” pdu type. the vibe check, basically: what kind of pdu is this 🏷️
  • flags β€” pdu specific flags. the lil mood ring for this particular pdu, one per type ✨
  • hlen β€” pdu header length. how long the header itself is, in case you were wondering πŸ‘€
  • pdo β€” pdu data offset. where the data starts, so you're not out here searching 😌
  • plen β€” pdu wire byte length. how many bytes actually go over the wire, fr fr πŸ“

🌈 SEE ALSO 🌈

  • Kernel file ./include/linux/nvme-tcp.h β€” go read the source bestie, it's all there 🫢

lowkey the whole struct is five fields and none of them are mysterious. iconic behavior honestly 🌟

that's the whole page, no notes πŸ’… and yes, this was struct nvme_tcp_hdr(9) from ./include/linux, dated October 2026 β€” catch you in the next reboot, bestie πŸ¦‹πŸŽ€πŸ’–

πŸ“¦ where this page comes from