scsi_target_..._ref_release(9)
π
scsi_target_..._ref_release(9) π
okay so bestie, this is a little Kernel API Manual moment β very βkernel internals but make it cute.β π
π NAME π
scsi_target_reap_ref_release β remove target from visibility
β¨ SYNOPSIS β¨
void scsi_target_reap_ref_release (struct kref *kref );
π ARGUMENTS π
krefβ thereap_refin the target being released
π¦ DESCRIPTION π¦
Called on last put of reap_ref, which is the indication that no device under this target is visible anymore, so render the target invisible in sysfs. πβ¨
Note: we have to be in user context here because the target reaps should be done in places where the scsi device visibility is being removed. π«Ά
π SEE ALSO π
Kernel file: ./drivers/scsi/scsi_scan.c
The whole function friend group, periodt:
scsi_complete_async_scans(9)scsi_unlock_floptical(9)scsi_alloc_sdev(9)scsi_alloc_target(9)scsi_target_reap(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)
π cute sign-off: source/version ./drivers/scsi, date October 2026, page scsi_target_..._ref_release(9) β slay and farewell. π«ΆπΈ
π¦ 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