mpi3mr_build_nvme_sgl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mpi3mr_build_nvme_sgl ✨

Okay so bestie, welcome to the Kernel API Manual entry for mpi3mr_build_nvme_sgl β€” yes that's a mouthful, iykyk, we're getting through it together 🫢

🌸 NAME 🌸

mpi3mr_build_nvme_sgl β€” the SGL constructor for the NVMe encapsulated request, no cap. It literally builds the thing. Iconic behavior.


✨ SYNOPSIS ✨

int mpi3mr_build_nvme_sgl (struct mpi3mr_ioc *mrioc , struct
mpi3_nvme_encapsulated_request *nvme_encap_request , struct
mpi3mr_buf_map *drv_bufs , u8 bufcnt );

Four args, one int coming back at you. Slay.


πŸŽ€ ARGUMENTS πŸŽ€

  • mrioc β€” your adapter instance reference, the main character of this whole situation πŸ’–
  • nvme_encap_request β€” the NVMe encapsulated MPI request; this is the vessel we're filling up
  • drv_bufs β€” the DMA address of the buffers that are gonna be placed in the sgl. Yes, the buffers go in the sgl. That's the whole vibe.
  • bufcnt β€” a u8, the number of DMA buffers. Count them. There's bufcnt of them πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

So what this function actually does: it takes the DMA address of the buffers you handed over and places them in proper format as SGEs inside the given NVMe encapsulated request. That's it. That's the function. It formats. It places. It slays ✨

The way that it's just a formatter for SGE placement in an encapsulated request… lowkey obsessed with the specificity ngl.


πŸ”₯ RETURN πŸ”₯

  • 0 on success β€” we love a win πŸ’œ
  • -1 on failure β€” 😭 but like, at least it told you

🌈 SEE ALSO 🌈

Alright bestie, buckle up, this list is long long. But every single one matters so here we go πŸ’…

Kernel file ./drivers/scsi/mpi3mr/mpi3mr_app.c β€” go read it, it's giving source of truth πŸ‘‘

And then the whole friend group:

Fifty-seven whole references, bestie. Fifty-seven. We read them all. Periodt πŸ’€


and that's the page!! sign-off time 🧚 this one came from ./drivers/scsi/mpi3mr and it's dated October 2026 β€” put that in your calendar and your heart πŸ’–πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from