scsi_target_..._ref_release(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the reap_ref in 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:


πŸ’– cute sign-off: source/version ./drivers/scsi, date October 2026, page scsi_target_..._ref_release(9) β€” slay and farewell. 🫢🌸

πŸ“¦ where this page comes from