scsi_target_reap(9)
π 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:
scsi_complete_async_scans(9)scsi_unlock_floptical(9)scsi_alloc_sdev(9)scsi_target_reap_ref_release(9)scsi_alloc_target(9)scsi_sanitize_inquiry_string(9)scsi_probe_lun(9)scsi_add_lun(9)scsi_inq_str(9)scsi_probe_and_add_lun(9)scsi_sequential_lun_scan(9)scsi_report_lun_scan(9)scsi_add_device(9)scsi_scan_target(9)scsi_prep_async_scan(9)scsi_finish_async_scan(9)scsi_scan_host(9)scsi_get_pseudo_sdev(9)
mwah π β signed off from source ./drivers/scsi, dated October 2026. periodt. π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms