create_multi_sg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… create_multi_sg β€” the Kernel API Manual, bestie edition πŸŽ€

okay so this is a page from the Kernel API Manual (that's the manual name, iykyk) and honestly? it's short but it ate. let's get into it ✨


✨ NAME ✨

create_multi_sg β€” makes a whole bunch of sg entries for you, each one carrying buflen worth of data, pulled straight out of the source sglist πŸ¦‹


🌸 SYNOPSIS 🌸

struct scatterlist * create_multi_sg (struct scatterlist *to_sg ,
                                      struct scatterlist *from_sg ,
                                      int buflen );

like, that's the whole vibe. one function call, three args, returns a pointer. periodt πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • to_sg β€” the destination SG list, aka where the good stuff is going πŸ’–
  • from_sg β€” the source SG list, aka where the good stuff is coming from 🫢
  • buflen β€” the data length, like how much data, in length units 🌸

πŸ‘‘ DESCRIPTION πŸ‘‘

it returns the next free entry in the destination SG list. that's literally it, that's the whole description, no cap 😭

like β€” create_multi_sg does its thing, and what you get back is the pointer to the next slot that's still up for grabs in to_sg. main character energy honestly ✨


πŸ’œ SEE ALSO πŸ’œ

so there's a lot of friends in this little friend group, and they all live in the kernel file ./drivers/crypto/cavium/nitrox/nitrox_req.h 🧚 β€” go say hi to:

  • struct gphdr(9)
  • union se_req_ctrl(9)
  • struct se_crypto_request(9)
  • struct crypto_keys(9)
  • struct auth_keys(9)
  • struct flexi_crypto_context(9)
  • struct nitrox_aead_rctx(9)
  • struct nitrox_rfc4106_rctx(9)
  • union pkt_instr_hdr(9)
  • union pkt_hdr(9)
  • union slc_store_info(9)
  • struct nps_pkt_instr(9)
  • struct aqmq_command_s(9)
  • struct ctx_hdr(9)
  • struct nitrox_softreq(9)
  • create_single_sg(9) β€” the sibling!! the solo version!! the one-things πŸ₯Ή

and that's the whole page bestie, nothing more to read πŸ’€

source: ./drivers/crypto/cavium/nitrox Β· date: October 2026 β€” mwah, sending you off with a create_multi_sg(9) and a kiss πŸ’‹πŸŒˆβ­

πŸ“¦ where this page comes from