STRUCT NVME_TCP_HDR(9)
β¨ 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
- 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