STRUCT GPHDR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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