mpi3mr_remov...ev_from_host(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– mpi3mr_remove_tgtdev_from_host β€” NAME πŸŽ€

okay so this page is from the section 9 kernel API manual, and the star of the show is mpi3mr_remove_tgtdev_from_host β€” the function that removes a dev from the upper layers. that's it, that's the lore. bestie, it's the "you're not on the guest list anymore" of SCSI devices πŸ’…


✨ SYNOPSIS ✨

void mpi3mr_remove_tgtdev_from_host (struct mpi3mr_ioc *mrioc ,
                                     struct mpi3mr_tgt_dev *tgtdev );

so it's a void function, no return value in the signature, no cap 🫢


🌸 ARGUMENTS 🌸

  • mrioc β€” the adapter instance reference. like, which controller are we talking about, bestie. main character adapter energy ✨
  • tgtdev β€” the target device structure. the actual dev in question, the one whose fate we're deciding πŸ’€

πŸ¦‹ DESCRIPTION πŸ¦‹

the way this works is genuinely so simple. it checks whether the device is exposed to the upper layers, and if it is (vibe check: passed) πŸ‘‘ then it removes the device from the upper layers by calling scsi_remove_target. that's the whole move. iconic, no notes, periodt 🌈


πŸŽ€ RETURN πŸŽ€

0 on success, non zero on failure. (yes even though the synopsis says void β€” the page says this, so we're saying this too, iykyk 🫠)


πŸ’œ SEE ALSO πŸ’œ

first up, the actual source file it lives in β€” the kernel file:

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

and then the entire squad, and by entire squad I mean every single one, no skips, no edits, fr fr πŸ”₯


ngl that's a lot of friends but they're all valid and they all showed up πŸ’€πŸ«Ά

and that's the page!! it lives under ./drivers/scsi/mpi3mr and the whole thing is stamped October 2026 β€” so like, future-dated slay, we love a forward-thinking manpage β­πŸ’… bye bestie, go remove some targets responsibly 🧚

πŸ“¦ where this page comes from