cc_set_sram_desc(9)
β¨ cc_set_sram_desc β¨
okay so this is a page from the Kernel API Manual bestie, and it's literally all about cc_set_sram_desc π
like welcome to the crypto corner of the kernel, we're building descriptor sequences today and it's giving very much low-level main character energy π«Ά
πΈ NAME πΈ
cc_set_sram_desc β creates a const descriptors sequence that sets the values from a given array into SRAM. no cap, that's the whole gig β¨
π¦ SYNOPSIS π¦
void cc_set_sram_desc (const u32 *src , u32 dst , unsigned int nelement
, struct cc_hw_desc *seq , unsigned int *seq_len );
that's the whole signature right there, keep it exactly like that π
π ARGUMENTS π
srcβ a pointer to the array of words you wanna set as consts. it's the source of truth fr fr πdstβ the target SRAM buffer you're setting stuff into. that's where the magic lands β¨nelementβ the number of words in thesrcarray. just count 'em, bestie π’seqβ a pointer to the given IN/OUT descriptor sequence πseq_lenβ a pointer to the given IN/OUT sequence length. also IN/OUT, also a pointer, also important π
β οΈ NOTE β οΈ
each const value can't exceed word size. like, that's the limit, don't try it, it's not gonna slay π
π SEE ALSO π
kernel file ./drivers/crypto/ccree/cc_sram_mgr.h, plus cc_sram_mgr_init(9) and cc_sram_alloc(9) β go read those too, iykyk π§
ok that's the whole page bestie, go forth and set those consts π
big sign-off energy: this iconic little page lives in ./drivers/crypto/ccree, dated October 2026, and it's page cc_set_sram_desc(9) of the Kernel API Manual. 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