mpi3mr_prepare_sg_scmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

mpi3mr_prepare_sg_scmd β€” bestie, this one builds the scatter gather list πŸ’…

(oh and hi, you're reading the Kernel API Manual β€” welcome to the group chat 🫢)


🌸 SYNOPSIS 🌸

int mpi3mr_prepare_sg_scmd (struct mpi3mr_ioc *mrioc , struct scsi_cmnd
*scmd , struct mpi3_scsi_io_request *scsiio_req );

okay so it's an int function, three args, no cap ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • mrioc β€” your adapter instance reference, like the main character of the whole operation πŸ‘‘
  • scmd β€” the SCSI command reference, the actual errand being run πŸƒβ€β™€οΈ
  • scsiio_req β€” the MPI3 SCSI IO request, the little envelope it all gets stuffed into πŸ’Œ

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: this function literally maps the SCSI command's data SGEs and protection SGEs over to the MPI request SGEs. That's the whole vibe. πŸ”₯

and if it turns out it needs it, it also uses an additional 4K chain buffer to send the SGEs β€” like a little overflow bag when the main purse is full πŸ‘œβœ¨


πŸ’– RETURN πŸ’–

  • 0 on success β€” slay, we ate πŸŽ‰
  • -ENOMEM if dma_map_sg fails β€” not slay, we're out of memory 😭

🌈 SEE ALSO 🌈

first up, the file where all the drama lives:

  • ./drivers/scsi/mpi3mr/mpi3mr_os.c

and now the whole entire friend group, no one left out fr fr:


ngl that SEE ALSO is giving " tagged in a 100-person group photo" energy but every single one of them is valid and we respect it πŸ’€πŸ’–

okay that's the whole page!! this one lives in ./drivers/scsi/mpi3mr and the version vibes are from October 2026 β€” go forth and map those SGEs bestie, ily, bye πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from