mvumi_make_sgl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mvumi_make_sgl(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” this one's about mvumi_make_sgl, which is literally the function whose whole job is Prepares SGL. that's it, that's the name. short king behavior but we respect it 🫢


✨ NAME ✨

mvumi_make_sgl β€” Prepares SGL

like… it prepares the SGL. no notes. iconic honestly πŸ’…


🌸 SYNOPSIS 🌸

int mvumi_make_sgl (struct mvumi_hba *mhba , struct scsi_cmnd *scmd , void *sgl_p , unsigned char *sg_count );

yes the spaces before the commas are on purpose, don't come for me, that's just how it's written 😭


πŸŽ€ ARGUMENTS πŸŽ€

  • mhba β€” Adapter soft state. it's the soft state, of the adapter. that's the whole vibe, that's the whole job πŸ¦‹
  • scmd β€” SCSI command from the mid-layer. mid-layer said "here, take this", and honestly? we did πŸ’–
  • sgl_p β€” SGL to be filled in. this is the one getting the glow-up β€” it's to be filled in, you're not reading it, you're writing into it ✨
  • sg_count β€” return the number of SG elements. note the word return β€” this isn't just a value you pass, it's a value that comes back out to you πŸ‘‘ it's carrying the count of SG elements, so don't sleep on it

πŸ’œ DESCRIPTION πŸ’œ

okay so real talk, super simple:

If successful, this function returns 0. otherwise, it returns -1.

that's it. that's the contract. 0 = slay, -1 = we don't talk about it 🫢

ngl bestie, "otherwise" is doing a lot of heavy lifting in that sentence β€” but it's literally what the page says, so we're keeping it exactly as is πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

first things first, the kernel file itself lives at ./drivers/scsi/mvumi.c β€” that's the mothership, go say hi πŸ’–

and here's the whole friend group in the mvumi cinematic universe, all of them (9), all of them linked:

main character energy across the board, no cap 🌈


and that's the whole page bestie, go touch some ./drivers/scsi 🧚

✨ this has been mvumi_make_sgl(9), coming to you from ./drivers/scsi, dated October 2026 ✨ πŸ’–πŸŽ€πŸŒΈ

πŸ“¦ where this page comes from