scsi_set_medium_removal(9)
π NAME π
okay so bestie, welcome to the scsi_set_medium_removal(9) page from the Kernel API Manual β¨ this one is literally about sending a command to allow or prevent medium removal. no cap, it's giving βlet the medium stay or let it goβ energy π
πΈ SYNOPSIS πΈ
int scsi_set_medium_removal (struct scsi_device *sdev , char state );
π¦ ARGUMENTS π¦
sdevβ the target scsi device πstateβ the removal state to set (prevent or allow) π
π₯ RETURN π₯
0ifsdevis not removable or not lockable or successful. yes, all three of those can land here, bestie π- non-
0is a SCSI result code if> 0or kernel error code if< 0β so the sign is doing important main character work π - Sets
sdev->lockedto the new state on success. periodt. πβ¨
π SEE ALSO π
- Kernel file
./drivers/scsi/scsi_ioctl.cπ ioctl_probe(9)scsi_cmd_allowed(9)sg_scsi_ioctl(9)scsi_ioctl(9)scsi_ioctl_block_when_processing_errors(9)
sign-off time, bestie: this page is from ./drivers/scsi, dated October 2026 β thatβs the source/version and date doing their cute little footer thing π«Άβ¨ mwah π
π¦ 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