scsi_request_sense(9)
π scsi_request_sense β a Kernel API Manual moment
okay so bestie, welcome to scsi_request_sense(9), a page straight out of the Kernel API Manual and honestly it's giving "small but mighty" π¦
β¨ NAME β¨
scsi_request_sense β literally just requesting sense data from a particular target. that's the whole vibe. π
πΈ SYNOPSIS πΈ
enum scsi_disposition scsi_request_sense (struct scsi_cmnd *scmd );
one function, one argument, one return type β enum scsi_disposition β and it ate, no notes. π
π«Ά ARGUMENTS π«Ά
scmdβ the SCSI cmd you're passing in for request sense. that's it, that's the whole parameter list, she's lowkey minimal and we respect it π
π₯ NOTES π₯
okay listen up because this part matters, fr fr. some hosts automatically obtain this information β iconic of them, truly main character energy β and others require that we obtain it on our own. so it's a whole "depends on your host" situation, iykyk. π
and here's the big one, the thing you cannot miss: this function will *not* return until the command either times out, or it completes. like, she is not leaving the group chat until the conversation is done. no cap. if you were hoping for a cute little non-blocking peek, that is not this. π
bestie pls plan around that blocking behaviour β the function hangs out until timeout or completion, and there is no third option listed here. β
π¦ SEE ALSO π¦
all the siblings, in their exact order because we do not shuffle the family tree π
kernel file ./drivers/scsi/scsi_error.c plus:
scsi_schedule_eh(9)scmd_eh_abort_handler(9)scsi_abort_command(9)scsi_eh_reset(9)scsi_eh_scmd_add(9)scsi_timeout(9)scsi_block_when_processing_errors(9)scsi_eh_prt_fail_stats(9)scsi_report_sense(9)scsi_check_sense(9)scsi_eh_completed_normally(9)scsi_eh_done(9)scsi_try_host_reset(9)scsi_try_bus_reset(9)scsi_try_target_reset(9)scsi_try_bus_device_reset(9)scsi_try_to_abort_cmd(9)scsi_eh_prep_cmnd(9)scsi_eh_restore_cmnd(9)scsi_send_eh_cmnd(9)scsi_eh_finish_cmd(9)scsi_eh_get_sense(9)scsi_eh_tur(9)scsi_eh_test_devices(9)scsi_eh_try_stu(9)scsi_eh_bus_device_reset(9)scsi_eh_target_reset(9)scsi_eh_bus_reset(9)scsi_eh_host_reset(9)scsi_eh_offline_sdevs(9)scsi_noretry_cmd(9)scsi_decide_disposition(9)scsi_eh_lock_door(9)scsi_restart_operations(9)scsi_eh_ready_devs(9)scsi_eh_flush_done_q(9)scsi_unjam_host(9)scsi_error_handler(9)scsi_report_bus_reset(9)scsi_report_device_reset(9)scsi_ioctl_reset(9)scsi_get_sense_info_fld(9)
and that's the page!! π this one lives in ./drivers/scsi, it's the October 2026 era release of scsi_request_sense(9), and honestly? she's short, she's blocking, she's iconic. go get that sense data bestie, slay π
π
π¦ 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