s5p_hash_copy_sg_lists(9)
π s5p_hash_copy_sg_lists(9) π
okay bestie, this is the Kernel API Manual page for s5p_hash_copy_sg_lists(9), and it's giving "copy sg list and make fixes in copy" energy. no cap, we're keeping every arg and every reference. π
πΈ NAME πΈ
s5p_hash_copy_sg_lists β copy sg list and make fixes in copy
β¨ SYNOPSIS β¨
int s5p_hash_copy_sg_lists (struct s5p_hash_reqctx *ctx , struct
scatterlist *sg , unsigned int new_len );
π«Ά ARGUMENTS π«Ά
ctxβ request context. that's the request's little home base, periodt.sgβ source scatterlist request. the sourcesgwe're working from, bestie.new_lenβ number of bytes to process fromsg. exactly that many bytes get processed from the sourcesg.
π₯ DESCRIPTION π₯
okay so the whole vibe is: allocate a new scatterlist table, then copy the data for HASH into it. If there was xmit_buf filled, prepare it first β yes, first β and then copy page, length and offset from the source sg into it, adjusting begin and/or end for the skip offset and the hash_later value. π
the resulting sg table will be assigned to ctx->sg. also set the flag so we can free it after irq ends processing. that's the cleanup moment, and it matters. π§
π¦ SEE ALSO π¦
go peek at these, iykyk:
- Kernel file
./drivers/crypto/s5p-sss.c struct samsung_aes_variant(9)struct s5p_aes_dev(9)struct s5p_hash_reqctx(9)struct s5p_hash_ctx(9)s5p_set_dma_hashdata(9)s5p_hash_rx(9)s5p_hash_read_msg(9)s5p_hash_write_ctx_iv(9)s5p_hash_write_iv(9)s5p_hash_copy_result(9)s5p_hash_dma_flush(9)s5p_hash_dma_enable(9)s5p_hash_irq_disable(9)s5p_hash_irq_enable(9)s5p_hash_set_flow(9)s5p_ahash_dma_init(9)s5p_hash_write_ctrl(9)s5p_hash_xmit_dma(9)s5p_hash_copy_sgs(9)s5p_hash_prepare_sgs(9)s5p_hash_prepare_request(9)s5p_hash_update_dma_stop(9)s5p_hash_finish(9)s5p_hash_finish_req(9)s5p_hash_handle_queue(9)s5p_hash_tasklet_cb(9)s5p_hash_enqueue(9)s5p_hash_update(9)s5p_hash_final(9)s5p_hash_finup(9)s5p_hash_init(9)s5p_hash_digest(9)s5p_hash_cra_init_alg(9)s5p_hash_cra_init(9)s5p_hash_cra_exit(9)s5p_hash_export(9)s5p_hash_import(9)
mwah π β source/version: ./drivers/crypto; date: October 2026. that's the footer, bestie, and we're giving it a cute little sign-off instead of copying the line. bye π«Ά
π¦ 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