scsi_ioctl_...ssing_errors(9)
β¨ scsi_ioctl_...ssing_errors(9) β¨
okay so bestie, this is a page straight outta the Kernel API Manual and it's genuinely one of the shorter ones, so we're gonna get through it together, yeah? π It's about scsi_ioctl_block_when_processing_errors β yes that's a whole mouthful, yes it's iconic, no I will not be shortening it π
πΈ NAME πΈ
scsi_ioctl_block_when_processing_errors β literally just here to prevent commands from being queued, that's the whole vibe π«Ά
π¦ SYNOPSIS π¦
int scsi_ioctl_block_when_processing_errors (struct scsi_device *sdev ,
int cmd , bool ndelay );
like, that's the whole signature, no cap β¨
π ARGUMENTS π
sdevβ the target scsi device, aka the main character of this function πcmdβ which ioctl is it π (yes, you gotta know, that's your job)ndelayβ no delay, i.e. non-blocking, i.e. we are not waiting around π¨
π DESCRIPTION π
okay the whole point here: we can process a reset even when a device isn't fully operable. π₯ That's it. That's the sentence. The device is kinda going through it and we're still out here handling resets, slay π
β RETURN β
0on success π<0error code π (negative means bad vibes, remember that)
π SEE ALSO π
- Kernel file
./drivers/scsi/scsi_ioctl.cπ ioctl_probe(9)scsi_set_medium_removal(9)scsi_cmd_allowed(9)sg_scsi_ioctl(9)scsi_ioctl(9)
like, go read those too, iykyk π§
fr fr bestie, this page is short but every single word is doing its job β don't skip the return values, they matter π
and that's the whole thing! π this lil page lives in ./drivers/scsi and its version stamp says October 2026 β so go forth, block those commands, protect the queue, and remember: process that reset even when the device is being dramatic πβπ
bye bestie, love u, go read some kernel source ππ¦πΈ
π¦ 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