scsi_tape_release(9)
β¨ NAME β¨
okay so welcome to the scsi_tape_release(9) page from the Kernel API Manual, bestie π
this is the function that gets called to free the Scsi_Tape structure, and itβs giving cleanup-era main character energy. slay.
π SYNOPSIS π
void scsi_tape_release (struct kref *kref );
πΈ ARGUMENTS πΈ
krefβ pointer to the embeddedkref, aka the little thing youβre passing in π«Ά
π DESCRIPTION π
okay so real talk: st_ref_mutex must be held entering this routine. no sneaking in without it, bestie.
because itβs called on the last put, you should always use the scsi_tape_get scsi_tape_put helpers. they manipulate the semaphore directly, and you should never do a direct kref_put. not even once. periodt. π
caution cutie: direct kref_put is a no-no here β let the helpers handle it, fr fr π
π¦ SEE ALSO π¦
the kernel file ./drivers/scsi/st.c is the place to be, and these are the icons you should also check out:
position_lost_in_reset_show(9)read_cnt_show(9)read_byte_cnt_show(9)read_ns_show(9)write_cnt_show(9)write_byte_cnt_show(9)write_ns_show(9)in_flight_show(9)io_ns_show(9)other_cnt_show(9)resid_cnt_show(9)
source/version: ./drivers/scsi β’ date: October 2026 β’ page: scsi_tape_release(9) β byeee bestie, ily, hydrate and protect your st_ref_mutex π«Άβ¨π
π¦ 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