STRUCT OCS_AES_DEV(9)
π 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,__iomemflavored. this is where the device actually lives in memory-land πΊοΈdma_err_maskβ the error reported by OCS DMA interrupts. it's au32, it's a mask, it's masking errors, we stan a straightforward field πengineβ the crypto engine for the device. the muscle. the moment. thestruct crypto_engine *ποΈ
real talk:irq_completionis chillin' in the struct too (astruct 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
- 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