spu_skcipher_tx_sg_create(9)
Okay bestie, so this is from the Kernel API Manual, and the function is spu_skcipher_tx_sg_create. Let's get into it β¨
π NAME π
spu_skcipher_tx_sg_create β bestie, this literally builds up the scatterlist of buffers used to send a SPU request message for an skcipher request. It includes the SPU message headers and the request data. Periodt. π
πΈ SYNOPSIS πΈ
int spu_skcipher_tx_sg_create (struct brcm_message *mssg , struct
iproc_reqctx_s *rctx , u8 tx_frag_num , unsigned int chunksize , u32
pad_len );
π ARGUMENTS π
mssgβ the mailbox message containing the transmit sg. Main character energy fr fr β¨rctxβ the crypto request context. It's giving "context is everything" πββοΈtx_frag_numβ number of scatterlist elements required to construct the SPU request message. Basically how many pieces we're working with π§©chunksizeβ Number of bytes of request data. The literal substance, no cap π―pad_lenβ Number of pad bytes. A little extra padding never hurt nobody π
π¦ DESCRIPTION π¦
The scatterlist that gets allocated here is freed in spu_chunk_cleanup when the request completes β whether the request is handled successfully or there is an error. So like, it's super responsible and cleans up after itself either way. Iconic behavior honestly π
π₯ RETURN π₯
0if successful< 0if an error
So basically zero means slay, negative means something went wrong π
π SEE ALSO π
Kernel file ./drivers/crypto/bcm/cipher.c
select_channel(9)spu_skcipher_rx_sg_create(9)handle_skcipher_req(9)handle_skcipher_resp(9)spu_ahash_rx_sg_create(9)spu_ahash_tx_sg_create(9)handle_ahash_req(9)spu_hmac_outer_hash(9)ahash_req_done(9)handle_ahash_resp(9)spu_aead_rx_sg_create(9)spu_aead_tx_sg_create(9)handle_aead_req(9)handle_aead_resp(9)spu_chunk_cleanup(9)finish_req(9)spu_rx_callback(9)skcipher_enqueue(9)spu_no_incr_hash(9)aead_gcm_esp_setkey(9)rfc4543_gcm_esp_setkey(9)aead_ccm_esp_setkey(9)spu_functions_register(9)spu_mb_init(9)
From ./drivers/crypto/bcm, October 2026. That's the whole vibe bestie, now go build those scatterlists ππ«Άβ¨
π¦ 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