STRUCT SEC_DEV_INFO(9)
struct sec_dev_info(9) β Kernel API Manual β okay bestie, welcome to the SEC unit page, it's giving queues-and-processors excellence π
π NAME π
struct sec_dev_info β The full SEC unit comprising queues and processors. That's the whole vibe: one SEC unit with its queues and processors bundled together, slay π«Ά.
β¨ SYNOPSIS β¨
struct sec_dev_info {
int sec_id;
int num_saas;
void __iomem *regs[SEC_NUM_ADDR_REGIONS];
struct mutex dev_lock;
int queues_in_use;
struct sec_queue queues[SEC_Q_NUM];
struct device *dev;
struct dma_pool *hw_sgl_pool;
};
π Members π
Okay so here's the Members list, and we're keeping every single one β no skipping, no summarising, periodt π
sec_idβ Index used to track which SEC this is when more than one is present. It's literally the SEC's little name tag so you know which one you're talking to π.num_saasβ The number of backed processors enabled. Yes, the original says backed β we're not swapping it out, bestie π.regsβ iomapped register regions shared by whole SEC unit. Shared by the whole unit, so everybody shares, iconic π€.dev_lockβ Protects concurrent queue allocation / freeing for the SEC. It's the bouncer for queue alloc/free drama π.queuesβ The 16 queues that this SEC instance provides. 16! Not fifteen, not seventeen β sixteen, no cap π₯.devβ Device pointer. Short, sweet, main character energy π.hw_sgl_poolβ DMA pool used to mimise mapping for the scatter gather lists. Yep, the original says "mimise" β we keep the exact word, no edits, no cap π.
Also, queues_in_use is chilling in the struct above, but the original Members list gives it no description β so we're not inventing one. Mysterious. Iconic. Unbothered π.
π¦ SEE ALSO π¦
Kernel file ./drivers/crypto/hisilicon/sec/sec_drv.h β go look at these if you want the full lore, bestie:
struct sec_queue_ring_cmd(9)struct sec_alg_tfm_ctx(9)struct sec_request(9)struct sec_request_el(9)struct sec_queue(9)struct sec_hw_sge(9)struct sec_hw_sgl(9)
Source/version: ./drivers/crypto/hisilicon/sec β date: October 2026 β page: struct sec_dev_info(9). Bye bestie, go be iconic in the kernel π
β¨
π¦ 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