create_single_sg(9)
π create_single_sg(9) β from the Kernel API Manual, bestie
okay so picture this: you're deep in the kernel, you've got a scatterlist and a buffer, and you just need them to meet. that's the whole vibe of this function. it's the little matchmaker of the SG world. π
β¨ SYNOPSIS β¨
struct scatterlist * create_single_sg (struct scatterlist *sg , void
*buf , int buflen );
like, that's the whole signature. no notes. iconic. π«Ά
πΈ ARGUMENTS πΈ
sgβ the destination SG list π« (the place your entry is going, your destination if you will)bufβ the data π¦ (the actual payload, the main character)buflenβ the data length π (how much of that data we're talking about)
π DESCRIPTION π
it returns the next free entry in the destination SG list. that's it. that's the function. lowkey perfect, highkey useful. the matching is done, the entry is pointed at the data, and you get handed back where to go next. no cap. β¨
π¦ SEE ALSO π¦
the whole friend group, honestly β they all hang out in the kernel file ./drivers/crypto/cavium/nitrox/nitrox_req.h:
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_multi_sg(9)π (yes, the sibling. the multi one. she's also slaying)
ok that's the whole page, go forth and scatterlist responsibly π
mwah π this one's from ./drivers/crypto/cavium/nitrox, dated October 2026 β catch you in the next manpage, bestie! πβ
π¦ 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