STRUCT OCS_AES_DEV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct ocs_aes_dev(9) πŸ’…

okay bestie, welcome to the Kernel API Manual, section 9 β€” the one and only struct ocs_aes_dev. that's AES device context if you're fancy. this is the lil' bundle of state that keeps an OCS AES crypto device from losing its mind, and we're gonna walk through every field together, no cap 🫢


✨ NAME ✨

struct ocs_aes_dev β€” the AES device context. literally the whole personality of your OCS AES device in one struct πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct ocs_aes_dev {
    struct list_head list;
    struct device *dev;
    int irq;
    void __iomem *base_reg;
    struct completion irq_completion;
    u32 dma_err_mask;
    struct crypto_engine *engine;
 };

like, that's it. that's the whole thing. copy it exactly, we don't freestyle struct definitions in this house πŸ’€


🌸 Members 🌸

  • list β€” the list head that lets the driver slot this device into its device list. it's giving "everybody needs a place to belong" πŸ₯Ή it just gets inserted into the list the driver is holding.
  • dev β€” the OCS AES device itself. your main character ✨
  • irq β€” the IRQ number. an integer, doing integer things πŸ”₯
  • base_reg β€” the IO base address of the OCS AES, __iomem flavored. this is where the device actually lives in memory-land πŸ—ΊοΈ
  • dma_err_mask β€” the error reported by OCS DMA interrupts. it's a u32, it's a mask, it's masking errors, we stan a straightforward field πŸ’…
  • engine β€” the crypto engine for the device. the muscle. the moment. the struct crypto_engine * πŸ‹οΈ
real talk: irq_completion is chillin' in the struct too (a struct completion), and yes we listed it up in the synopsis because we do not skip members in this group chat. it's just not separately described in the Members rundown. keeping it 100. πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

peep the kernel file ./drivers/crypto/intel/keembay/ocs-aes.h, plus the iconically named struct ocs_dll_desc(9) and ocs_aes_bypass_op(9). go read those too, iykyk πŸ’–


and that's the vibe check! 🌈 this page came to you from ./drivers/crypto/intel/keembay β€” dated October 2026, struct ocs_aes_dev(9), periodt. go forth and AES responsibly, bestie πŸ§šπŸ’œ

πŸ“¦ where this page comes from