STRUCT CC_DRVDATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct cc_drvdata(9) ✨

okay so welcome to the Kernel API Manual bestie, today we're looking at struct cc_drvdata and it is literally the driver-private data context πŸŽ€ like, the lil backpack this driver carries around with all its stuff in it. it's giving "main character's emotional support struct" fr fr πŸ’…


🌸 NAME 🌸

struct cc_drvdata β€” driver private data context 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

no cap, here's the whole thing, character for character, don't touch a single semicolon:

struct cc_drvdata {
    void __iomem *cc_base;
    int irq;
    struct completion hw_queue_avail;
    struct platform_device *plat_dev;
    u32 mlli_sram_addr;
    struct dma_pool *mlli_buffs_pool;
    struct list_head alg_list;
    void *hash_handle;
    void *aead_handle;
    void *request_mgr_handle;
    void *fips_handle;
    u32 sram_free_offset;
    struct dentry *dir;
    struct clk *clk;
    bool coherent;
    char *hw_rev_name;
    enum cc_hw_rev hw_rev;
    u32 axim_mon_offset;
    u32 sig_offset;
    u32 ver_offset;
    int std_bodies;
    bool sec_disabled;
    u32 comp_mask;
    u32 cache_params;
    u32 ace_const;
 };

like… look at all those fields. iconic. every single one of them is in there and we are NOT skipping any πŸ’–


🧚 Members 🧚

so the page only spells out two of these bad boys, and here they are, no gatekeeping:

  • cc_base β€” the virt address of the CC registers ✨ (yes, virt as in virtual, she's not the raw physical one, okay?)
  • irq β€” a bitmap indicating the source of the last interrupt πŸ”₯ like a little "who woke me up" receipt ngl
the rest of the fields in the struct above are just chillin' there in the synopsis, bestie β€” the page doesn't define them individually so neither will I, iykyk πŸ™ˆ

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/crypto/ccree/cc_driver.h β€” go read the actual header, it's right there, slay πŸ’œ

and that's the vibe check, periodt πŸ‘‘

okay so like a proper sign-off: this lil beauty lives in ./drivers/crypto/ccree, the page is dated October 2026, and it's filed under struct cc_drvdata(9) in the Kernel API Manual πŸ¦‹ mwah, go forth and be coherent πŸ’«

πŸ“¦ where this page comes from