spu2_fmd_ctrl0_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

ok so spu2_fmd_ctrl0_write β€” bestie, this is the one that writes the ctrl0 field inside the fixed metadata (FMD) field of an SPU request packet. that's it, that's the whole vibe. (this page is from the Kernel API Manual, in case u were wondering πŸŽ€)


✨ SYNOPSIS ✨

void spu2_fmd_ctrl0_write (struct SPU2_FMD *fmd , bool is_inbound , bool
auth_first , enum spu2_proto_sel protocol , enum spu2_cipher_type
cipher_type , enum spu2_cipher_mode cipher_mode , enum spu2_hash_type
auth_type , enum spu2_hash_mode auth_mode );

like, yes, it returns void. it's giving "i do the work and i don't need applause." πŸ‘‘


🫢 ARGUMENTS 🫢

  • fmd β€” start of the FMD field that's getting written. this is ur canvas, ur main character struct pointer 🎨
  • is_inbound β€” true if we're decrypting, false if we're encrypting. pick a lane, bestie πŸ’«
  • auth_first β€” true if the alg authenticates before it encrypts. order matters, always 🌸
  • protocol β€” the protocol selector
  • cipher_type β€” which cipher algorithm we're using
  • cipher_mode β€” the cipher mode
  • auth_type β€” the authentication type
  • auth_mode β€” the authentication mode
ngl there are a Lot of params here but it's just ctrl0 being built up field by field, no cap. pass them all, skip none πŸ™ˆ

🌈 SEE ALSO 🌈

ok the friend group is BIG, like a whole group chat of related functions, and also a kernel file, which is iconic of it honestly:

Kernel file ./drivers/crypto/bcm/spu2.c β€” that's where the family lives 🏠


and that's the whole page, bestie πŸ’– it came from source ./drivers/crypto/bcm, dated October 2026, living in the Kernel API Manual β€” go read the neighbors, they ate πŸ”₯πŸ‘‘πŸ’…

πŸ“¦ where this page comes from