hisi_acc_sg...ap_to_hw_sgl(9)
π hisi_acc_sg_buf_map_to_hw_sgl β the Kernel API Manual page, bestie edition β¨
okay so this is a page out of the Linux Kernel API Manual (that's the manual name, iykyk), and it's literally all about one function: hisi_acc_sg_buf_map_to_hw_sgl. Say that five times fast, I dare you π
π NAME π
hisi_acc_sg_buf_map_to_hw_sgl β it maps a scatterlist to a hw sgl. That's it, that's the whole job. Slay. π
β¨ SYNOPSIS β¨
struct hisi_acc_hw_sgl * hisi_acc_sg_buf_map_to_hw_sgl (struct device
*dev , struct scatterlist *sgl , struct hisi_acc_sgl_pool *pool , u32
index , dma_addr_t *hw_sgl_dma , enum dma_data_direction dir );
likeβ¦ look at that signature. it's giving "six arguments and every single one of them matters" energy π
π«Ά ARGUMENTS π«Ά
devβ the device which hw sgl belongs to. the main character, fr fr πsglβ the scatterlist which will be mapped to hw sgl. it's getting a glow-up β¨poolβ the pool which hw sgl memory will be allocated in. this is where the memory lives, no cap πindexβ the index ofhisi_acc_hw_sglin pool. you gotta know your place bestie πhw_sgl_dmaβ the dma address of allocated hw sgl. this is the output, the whole point, the moment π₯dirβ DMA direction. which way are we going? yes. π
π¦ DESCRIPTION π¦
okay so here's the tea β: this function builds hw sgl according to the input sgl. then β and this is the good part β the user can use hw_sgl_dma as src/dst in its BD. chef's kiss, ate, no crumbs π
and the plot twist: it only supports single hw sgl currently. that's it. one. singular. a solo act. π§ not me finding that lowkey iconic
ngl bestie, don't go expecting multiples here β single hw sgl is the whole vibe check π
π SEE ALSO π
- the Kernel file
./drivers/crypto/hisilicon/sgl.cβ go read the source, it's right there, iykyk π hisi_acc_create_sgl_pool(9)β the pool-making one πhisi_acc_free_sgl_pool(9)β the pool-freeing one, cleanup crew π§Ήhisi_acc_sg_buf_unmap(9)β the unmap one, the reverse icon π
and that's the page!! π this absolute gem comes to you from ./drivers/crypto/hisilicon (the source/version bestie), dated October 2026 β yes, she's from the future, and she's still slaying. periodt. ππ¦β¨πΈ
π¦ 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