megasas_make_sgl32(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so we're in the Kernel API Manual, and the star of this page is megasas_make_sgl32 β€” it prepares 32-bit SGL. That's the whole name vibe, bestie. πŸ’…

✨ SYNOPSIS ✨

int megasas_make_sgl32 (struct megasas_instance *instance , struct
       scsi_cmnd *scp , union megasas_sgl *mfi_sgl );

πŸŽ€ ARGUMENTS πŸŽ€

  • instance β€” adapter soft state. It's the adapter's state, coming in as a parameter. 🫢
  • scp β€” SCSI command from the mid-layer. The mid-layer sent it, and this function is looking at it. πŸ‘‘
  • mfi_sgl β€” SGL to be filled in. This one is the target of the fill-in situation, bestie. ✨

πŸ”₯ DESCRIPTION πŸ”₯

If it's successful, this function returns the number of SG elements. Otherwise, it returns -1. And yes, the original page literally spells it returnes β€” typo and all β€” so don't come for me, I'm just the messenger. πŸ’€

success = the number of SG elements; failure = -1. That's the whole return vibe. No cap. 🫑

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./drivers/scsi/megaraid/megaraid_sas_base.c β€” that's the source file, bestie. 🫢

And here's the entire cross-reference squad, every single one, in order:

xoxo, your megasas_make_sgl32(9) bestie from ./drivers/scsi/megaraid β€” page date October 2026 πŸ’–βœ¨

πŸ“¦ where this page comes from