STRUCT SEC_REQ_OP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct sec_req_op(9) β€” like, the kernel API manual but make it cute

okay so bestie, welcome to the Kernel API Manual page for struct sec_req_op and honestly? it's giving "vtable but make it SEC request energy" ✨ this is the ops struct for SEC requests and it is literally a lil bundle of function pointers πŸŽ€


✨ NAME ✨

struct sec_req_op β€” Operations for SEC request πŸ¦‹

like, the operations. for the SEC request. that's the whole vibe. periodt πŸ’…


🌸 SYNOPSIS 🌸

struct sec_req_op {
    int (*buf_map)(struct sec_ctx *ctx, struct sec_req *req);
    void (*buf_unmap)(struct sec_ctx *ctx, struct sec_req *req);
    void (*do_transfer)(struct sec_ctx *ctx, struct sec_req *req);
    int (*bd_fill)(struct sec_ctx *ctx, struct sec_req *req);
    int (*bd_send)(struct sec_ctx *ctx, struct sec_req *req);
    void (*callback)(struct sec_ctx *ctx, struct sec_req *req, int err);
    int (*process)(struct sec_ctx *ctx, struct sec_req *req);
 };

look at her πŸ‘‘ seven whole function pointers, all taking struct sec_ctx *ctx and struct sec_req *req, and every single one of them is out here being a main character fr fr πŸ’–

heads up bestie, do_transfer is in the struct but it does not get its own entry in the Members list below πŸ‘€ don't come for me, that's just how the page is, i don't make the rules 🫢

🧚 Members 🧚

  • buf_map β€” DMA map the SGL buffers of the request. it's the "okay let's get these buffers mapped" moment ✨
  • buf_unmap β€” DMA unmap the SGL buffers of the request. the undoing of the mapping, we love a clean exit πŸ’œ
  • bd_fill β€” Fill the SEC queue BD πŸ“
  • bd_send β€” Send the SEC BD into the hardware queue πŸ”₯ like, actual hardware. no cap.
  • callback β€” Call back for the request πŸ“ž
  • process β€” Main processing logic of Skcipher πŸ‘‘ the main character of the operation, honestly

πŸ’€ SEE ALSO πŸ’€

Kernel file ./drivers/crypto/hisilicon/sec2/sec.h πŸ“ go read it, iykyk


that's the whole page bestie, no notes 🌈

source: ./drivers/crypto/hisilicon/sec2 Β· October 2026 Β· struct sec_req_op(9) β€” mwah, drink some water, and go map those SGL buffers πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from