scsi_target_reap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… scsi_target_reap(9) πŸ’…

okay bestie, pop on your reading glasses because this is the Kernel API Manual page for scsi_target_reap(9) β€” yes, the target reaper itself, and it's lowkey iconic. πŸŽ€

✨ NAME ✨

scsi_target_reap β€” check to see if target is in use and destroy if not.

πŸ¦‹ SYNOPSIS πŸ¦‹

void scsi_target_reap (struct scsi_target *starget );

🌸 ARGUMENTS 🌸

  • starget β€” target to be checked. 🫢

πŸ’– DESCRIPTION πŸ’–

So the vibe is this: you use scsi_target_reap after removing a LUN or after doing a last put of the target. It checks β€” atomically β€” that nothing is using the target, and if nothing is using it, it removes it. No cap, that's the whole job. ✨

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/scsi/scsi_scan.c β€” and these besties are all in the group chat too:


mwah πŸ’‹ β€” signed off from source ./drivers/scsi, dated October 2026. periodt. πŸŽ€

πŸ“¦ where this page comes from