sg_init_one(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« sg_init_one(9) πŸ’«

okay so bestie, welcome to the Kernel API Manual entry for sg_init_one β€” it's literally the glow-up ritual for a single scatterlist entry, no cap ✨


🌸 NAME 🌸

sg_init_one β€” initialize a single entry sg list πŸŽ€

like, one entry. singular. the main character of scatterlists πŸ’…


✨ SYNOPSIS ✨

void sg_init_one (struct scatterlist *sg , const void *buf , unsigned
int buflen );

it returns void, meaning it gives you nothing back but vibes and a properly set-up sg entry 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • sg β€” the SG entry itself, bestie. this is the thing you're initializing πŸ’–
  • buf β€” the virtual address for IO πŸ”₯ that's where the data lives
  • buflen β€” the IO length 🌸 how much we're working with, an unsigned int

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file ./lib/scatterlist.c is where all the lore lives, and here's the whole friend group β€” every single one, no gatekeeping πŸ’œ


ngl bestie, sg_init_one is giving "small but iconic" β€” one entry, one job, and it ate πŸ’…

alright that's the whole page!! this one lives under ./lib and the version stamp says October 2026 ⭐ go forth and initialize that single sg entry, you've got this fr fr πŸ§šπŸ’–πŸŒˆ

πŸ“¦ where this page comes from