mpi3mr_build_nvme_prp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mpi3mr_build_nvme_prp β€” the PRP constructor for NVME encapsulated request ✨

Okay bestie, so this page is from the Kernel API Manual, and it's literally about mpi3mr_build_nvme_prp. Yes that's a mouthful, no I will not be pronouncing it out loud. Anyway, let's get into it 🫢


🌸 SYNOPSIS 🌸

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

That's the whole vibe β€” returns an int, takes four things. Four! We love a tidy signature πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • mrioc β€” your adapter instance reference, aka the whole reason we're here πŸ’œ
  • nvme_encap_request β€” the NVMe encapsulated MPI request itself, the main character of this function ngl
  • drv_bufs β€” the DMA address of the buffers that are gonna get placed in the SGL
  • bufcnt β€” how many DMA buffers we're talking, it's a u8 so keep it cute and small πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

So like, what does it actually do? It takes the DMA address of the given buffers and places them in proper format as PRP entries inside the given NVMe encapsulated request. That's it, that's the whole job. Not me being obsessed with a formatting function but honestly? Iconic. ✨


⭐ RETURN ⭐

  • 0 on success πŸŽ‰
  • -1 on failure 😭

No in-betweens, no "well actually", just two options and honestly that's refreshing.


🌈 SEE ALSO 🌈

Alright bestie, buckle up, this list is LONG and I'm not skipping a single one β€” every single cross-reference is coming with us πŸ’–

The kernel file lives at ./drivers/scsi/mpi3mr/mpi3mr_app.c, and then we've got:

Like I said. Every. Single. One. 🫑


Word of advice bestie: PRP entries are not a vibe you wanna freestyle. Use the function, get your 0, move on. πŸ’…

Okay that's the page! Signing off from ./drivers/scsi/mpi3mr, dated October 2026 β€” that's the source and the date, bestie, all wrapped up with a bow πŸŽ€βœ¨ Byeee πŸ¦‹πŸ’–

πŸ“¦ where this page comes from