STRUCT GPHDR(9)
β¨ struct gphdr(9) β the Kernel API Manual moment π
okay so bestie, we're in the Kernel API Manual today and the star of the show is struct gphdr, which literally stands for General purpose Header π. it's giving humble little struct with a big job, and honestly? we love her for it.
πΈ NAME πΈ
struct gphdr β the General purpose Header, no cap π
π¦ SYNOPSIS π¦
struct gphdr {
__be16 param0;
__be16 param1;
__be16 param2;
__be16 param3;
};
like, four __be16 params. that's the whole vibe. short, sweet, iconic β¨
π Members π
param0β the first parameter. the main character of the params, fr fr πparam1β the second parameter. showing up right after param0 like a loyal bestie π«Άparam2β the third parameter. lowkey just vibing in third place πparam3β the fourth parameter. the finale, the closer, the last one in the struct π
π₯ Description π₯
not me about to explain the whole point: the params tell the iv and the enc/dec data offsets. that's it. that's the tea ββ¨ they're the little signposts pointing at where the iv lives and where the enc/dec data lives, iykyk.
π SEE ALSO π
okay so this struct rolls deep β here's the entire friend group, and yes you need to know all of them:
Kernel file ./drivers/crypto/cavium/nitrox/nitrox_req.h union se_req_ctrl(9), struct se_crypto_request(9), struct crypto_keys(9), struct auth_keys(9), struct flexi_crypto_context(9), struct nitrox_aead_rctx(9), struct nitrox_rfc4106_rctx(9), union pkt_instr_hdr(9), union pkt_hdr(9), union slc_store_info(9), struct nps_pkt_instr(9), struct aqmq_command_s(9), struct ctx_hdr(9), struct nitrox_softreq(9), create_single_sg(9), create_multi_sg(9)
bestie reminder: everything above lives under ./drivers/crypto/cavium/nitrox β that's the neighborhood, don't get lost π
and that's the page!! mwah π this has been struct gphdr(9) from the Kernel API Manual, brought to you by the lovely folks at ./drivers/crypto/cavium/nitrox, dated October 2026. slay, go read your headers, periodt ππβ¨
π¦ 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