cc_copy_mac(9)
π 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/tosgl. that's it, that's the whole job. lowkey important though, don't sleep ondir. π
fr fr,diris 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 hicc_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
- 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