STRUCT OCS_HCU_RCTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct ocs_hcu_rctx(9) πŸ’–

okay so bestie, this is the Kernel API Manual page for struct ocs_hcu_rctx, and it’s literally the context for the request. No cap.

✨ NAME ✨

struct ocs_hcu_rctx β€” Context for the request.

πŸ¦‹ SYNOPSIS πŸ¦‹

struct ocs_hcu_rctx {
    struct ocs_hcu_dev      *hcu_dev;
    u32 flags;
    enum ocs_hcu_algo       algo;
    size_t blk_sz;
    size_t dig_sz;
    struct ocs_hcu_dma_list *dma_list;
    struct ocs_hcu_hash_ctx hash_ctx;
    u8 buffer[2 * SHA512_BLOCK_SIZE];
    size_t buf_cnt;
    dma_addr_t buf_dma_addr;
    size_t buf_dma_count;
    struct scatterlist      *sg;
    unsigned int            sg_data_total;
    unsigned int            sg_data_offset;
    unsigned int            sg_dma_nents;
    unsigned int            nents;
 };

πŸŽ€ Members πŸŽ€

  • hcu_dev β€” the OCS HCU device that’s gonna be used to service the request πŸ’…
  • flags β€” flags that keep track of the request status, bestie ✨
  • algo β€” the algorithm to use for the request, periodt πŸ”₯
  • blk_sz β€” block size of the transformation / request 🌸
  • dig_sz β€” digest size of the transformation / request πŸ¦‹
  • dma_list β€” OCS DMA linked list, iconic πŸŽ€
  • hash_ctx β€” OCS HCU hashing context πŸ’œ
  • buffer β€” buffer to store: partial block of data and SW HMAC artifacts (ipad, opad, etc.) πŸ‘‘
  • buf_cnt β€” number of bytes currently stored in the buffer πŸ“
  • buf_dma_addr β€” the DMA address of buffer (when mapped) ✨
  • buf_dma_count β€” the number of bytes in buffer currently DMA-mapped 🌈
  • sg β€” head of the scatterlist entries containing data 🫢
  • sg_data_total β€” total data in the SG list at any time πŸ’«
  • sg_data_offset β€” offset into the data of the current individual SG node 🧚
  • sg_dma_nents β€” number of sg entries mapped in dma_list πŸ’€
  • nents β€” number of entries in the scatterlist ⭐

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c β€” also peep struct ocs_hcu_ctx(9), struct ocs_hcu_drv(9) iykyk πŸ’š

Cute sign-off: the footer’s source/version bit is ./drivers/crypto/intel/keembay, the date is October 2026, and the title tag is struct ocs_hcu_rctx(9) β€” slay and goodbye, bestie πŸ’…βœ¨

πŸ“¦ where this page comes from