cc_copy_mac(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cc_copy_mac(9) β€” Kernel API Manual πŸ’…

okay so bestie, welcome to the Kernel API Manual, section 9 (9 = kernel routines, iykyk 🧚), and today's main character is literally cc_copy_mac. she's a tiny little function with one job and honestly? she ate. πŸŽ€


✨ NAME ✨

cc_copy_mac β€” copy MAC to a temporary location 🫢

like, that's the whole vibe. no cap, that's the entire pitch. it copies the MAC somewhere temporary and dips. πŸ’¨


🌸 SYNOPSIS 🌸

void cc_copy_mac (struct device *dev , struct aead_request *req , enum
cc_sg_cpy_direct dir );

that's her signature. that's the whole look. she takes three things and returns void, so don't be waiting around for a return value, she gives you nothing back and that's iconic of her. πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device object πŸ–₯️ like, the actual hardware thing we're doing business with. it's giving "who am I doing this for."
  • req β€” the aead request object πŸ“¨ the request in question, the whole reason we're here. she's the moment.
  • dir β€” [IN] (that's an input, bestie, so you're handing it in, not getting it back πŸ’…) β€” it tells us the copy direction: from/to sgl. that's it, that's the whole job. lowkey important though, don't sleep on dir. πŸ™ˆ
fr fr, dir is marked [IN] in the original, so please don't go expecting it to come back changed. she's input-only and she knows it. πŸŽ€

🌈 SEE ALSO 🌈

  • πŸ“ Kernel file ./drivers/crypto/ccree/cc_buffer_mgr.c β€” yes, the whole path, go look at it, she lives there
  • cc_get_sgl_nents(9) β€” sibling behaviour, go say hi
  • cc_copy_sg_portion(9) β€” the other one in the friend group, also worth a vibe check

aaaand that's the page!! ✨ tiny, cute, does exactly one thing. go forth and copy those MACs to temporary locations responsibly, bestie. πŸ’–

this little masterpiece is hanging out in ./drivers/crypto/ccree, dated October 2026, and it signs off as cc_copy_mac(9) β€” periodt, that's the whole footer, mwah πŸ’‹

πŸ“¦ where this page comes from