mpi3mr_bsg_build_sgl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mpi3mr_bsg_build_sgl β€” SGL construction for MPI commands ✨

okay bestie, welcome to the Kernel API Manual page for mpi3mr_bsg_build_sgl, which β€” say it with me β€” is all about SGL construction for MPI commands. no cap, that's literally the whole name. πŸŽ€


✨ SYNOPSIS ✨

int mpi3mr_bsg_build_sgl (struct mpi3mr_ioc *mrioc , u8 *mpi_req , u32
sgl_offset , struct mpi3mr_buf_map *drv_bufs , u8 bufcnt , u8 is_rmc ,
u8 is_rmr , u8 num_datasges );

like yes, that's a whole lot of arguments. we're gonna go through every single one, don't worry. 🫢


🌸 ARGUMENTS 🌸

  • mrioc β€” your adapter instance reference. the main character of the hardware world, honestly. πŸ‘‘
  • mpi_req β€” the MPI request. this is where the SGEs are getting placed, periodt.
  • sgl_offset β€” the offset where the SGL starts inside the MPI request. like a little bookmark. πŸ”–
  • drv_bufs β€” DMA address of the buffers that are gonna get placed in the SGL. the whole reason we're here. ✨
  • bufcnt β€” number of DMA buffers. count 'em. 🧚
  • is_rmc β€” does the buffer list have a management command buffer? yes or no, queen.
  • is_rmr β€” does the buffer list have a management response buffer? again β€” yes or no. πŸ™ˆ
  • num_datasges β€” number of data buffers in the list. the data ones specifically, iykyk. πŸ¦‹

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the vibe: this function takes the DMA address of the given buffers and places them into the given MPI request β€” in the proper format, as SGEs. that's it. that's the function. it's giving "glorified formatter" and honestly we respect it. πŸ’…

like, somebody's gotta do it, and it ate. πŸ”₯


⭐ RETURN ⭐

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

that's the whole return situation. very demure, very binary. πŸŽ€


🌈 SEE ALSO 🌈

bestie, buckle up, this list is long. but every single one of these is iconic in its own right, so here we go:

Kernel file ./drivers/scsi/mpi3mr/mpi3mr_app.c

okay that was a lot but we got through it together 🫢✨


ngl, if you're reading this at 3am in a kernel tree, hydrate, bestie. πŸ’œ

and that's the page!! this lil masterpiece lives over in ./drivers/scsi/mpi3mr, dated October 2026 β€” mwah, xoxo, go build some SGLs πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from