mpi3mr_setup_divert_ws(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ mpi3mr_setup_divert_ws(9) β€” from the Kernel API Manual πŸ¦‹

okay bestie, welcome to one (1) extremely specific little kernel function. it lives in the mpi3mr driver, it's from the Kernel API Manual, and it has exactly one job. let's get into it πŸ’…


✨ NAME ✨

mpi3mr_setup_divert_ws β€” Setup Divert IO flag for write same

like, that's the whole pitch. it sets up the divert IO flag for write same. iconic behavior, no notes πŸŽ€


🌸 SYNOPSIS 🌸

void mpi3mr_setup_divert_ws (struct mpi3mr_ioc *mrioc , struct scsi_cmnd
*scmd , struct mpi3_scsi_io_request *scsiio_req , u32 *scsiio_flags ,
u16 wslen );

returns nothing btw. it's a void. it just does the thing and leaves. main character energy fr πŸ’€


πŸ’– ARGUMENTS πŸ’–

five of them. yes, five. buckle up, bestie:

  • mrioc β€” Adapter instance reference 🫢 the controller you're talking about.
  • scmd β€” SCSI command reference. the actual command in question.
  • scsiio_req β€” MPI3 SCSI IO request. the request struct headed for firmware town.
  • scsiio_flags β€” Pointer to MPI3 SCSI IO Flags. yes, a pointer β€” so this function can reach in and set your flags for you. rude but helpful ✨
  • wslen β€” write same max length. it's a u16, so keep it cozy.

πŸ”₯ DESCRIPTION πŸ”₯

so here's the vibe check: this function grabs three little values out of the write same SCSI IO β€” unmap, ndob, and the number of blocks πŸ“

and then, based on those values, it sets the divert IO flag and also the reason for diverting the IO to firmware. that's it. that's the whole function. it reads, it decides, it flags. slay πŸ’…

no cap, it literally does not compute anything else. values in, flag + divert reason out, see ya 🌈

⭐ RETURN ⭐

Nothing. it's void. it gives you no gift back. it just sets your flags via the pointer and dips 😭


🧚 SEE ALSO 🧚

the kernel file in question, live and in person:

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

and now the friend group. every single one of these, because we don't ghost anybody πŸ‘‘:


and that's the whole page, bestie!! 🫢 this lil cutie is brought to you by ./drivers/scsi/mpi3mr (the version/source, mwah), dated October 2026, and it's page mpi3mr_setup_divert_ws(9) in case you forgot where you were. bye pookie, go set some divert IO flags πŸ’œβœ¨

πŸ“¦ where this page comes from