STRUCT SEC_REQ_OP(9)
π 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
- 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