cc_set_sram_desc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 the src array. 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