cc_sram_alloc(9)
π cc_sram_alloc(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a little function called cc_sram_alloc and honestly it's giving "tiny but crucial" energy. Let's get into it π
πΈ NAME πΈ
cc_sram_alloc β allocate a buffer from the SRAM pool π¦
Like, it grabs you some space out of the SRAM pool. That's the whole vibe. Iconic, honestly.
β¨ SYNOPSIS β¨
u32 cc_sram_alloc (struct cc_drvdata *drvdata , u32 size );
yeah that's the whole call, no cap π
π«Ά ARGUMENTS π«Ά
drvdataβ the associated device driver context π like, the driver's whole little world, passed in so the function knows who's asking.sizeβ the requested bytes to allocate π tell it how many bytes you want, it goes and finds them.
π₯ RETURN π₯
It hands back an address offset in SRAM β¨ ...or NULL_SRAM_ADDR if it failed π so yeah, check your return value, bestie, fr fr β that's your vibe check right there.
π SEE ALSO π
- Kernel file
./drivers/crypto/ccree/cc_sram_mgr.h cc_sram_mgr_init(9)cc_set_sram_desc(9)
go read those, iykyk π§ββοΈ
and that's the page!! periodt π this little gem lives in ./drivers/crypto/ccree and the docs are dated October 2026 π mwah, love u, go allocate responsibly πππ¦
π¦ 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