scsi_tape_release(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 embedded kref, 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:


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