STRUCT SA_MAPPED_SG(9)
β¨ struct sa_mapped_sg π
okay so this is struct sa_mapped_sg, and it lives in the Kernel API Manual β yes bestie, kernel docs, we're doing this π
πΈ NAME πΈ
struct sa_mapped_sg β scatterlist information for tx and rx β¨
like literally the little info bundle that keeps track of what's mapped, where it's going, and whether it needs to be freed. she's organized, she's responsible, we love her π«Ά
π¦ SYNOPSIS π¦
struct sa_mapped_sg {
bool mapped;
enum dma_data_direction dir;
struct scatterlist static_sg;
struct scatterlist *split_sg;
struct sg_table sgt;
};
look at that struct. five members. no notes. main character energy fr fr π
π Members π
okay let's go through the whole cast one by one:
mappedβ abool, and she's set totrueif thesgtis mapped. that's the whole vibe check right there βdirβ the mapping direction used forsgt. it's anenum dma_data_direction, so it knows which way the data's flowing π§static_sgβ astruct scatterliststatic entry used for overriding data. like when you need to swap in your own thing πsplit_sgβ astruct scatterlist *that gets set if the sg is split and needs to be freed up. no memory leaks on our watch, bestie πsgtβ thestruct sg_tablefor DMA API use. this is the actual table, the star of the show β
π₯ SEE ALSO π₯
- Kernel file
./drivers/crypto/sa2ul.cπ struct sa_cmdl_cfg(9)struct algo_data(9)struct sa_alg_tmpl(9)struct sa_rx_data(9)struct sa_req(9)
go read the whole friend group, they all hang out together iykyk π¦
and that's the page, bestie β every member, every type, every pointer, nothing skipped, no cap π―
mwah π this came from ./drivers/crypto, dated October 2026, and it's literally titled struct sa_mapped_sg(9) β slay, that's the whole sign-off ππ
π¦ 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