STRUCT SA_MAPPED_SG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” a bool, and she's set to true if the sgt is mapped. that's the whole vibe check right there βœ…
  • dir β€” the mapping direction used for sgt. it's an enum dma_data_direction, so it knows which way the data's flowing 🧭
  • static_sg β€” a struct scatterlist static entry used for overriding data. like when you need to swap in your own thing πŸ’…
  • split_sg β€” a struct scatterlist * that gets set if the sg is split and needs to be freed up. no memory leaks on our watch, bestie 😭
  • sgt β€” the struct sg_table for 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