STRUCT SEC_DEV_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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