scsi_try_to_abort_cmd(9)
π scsi_try_to_abort_cmd(9) β like, the Kernel API Manual page, bestie β¨
Okay so picture this: you're deep in the kernel, a SCSI command is being a whole mess, and you just need somebody to ask the host to abort it. That's this function. It's giving "hey bestie, can you handle this for me" energy π«Ά
πΈ NAME πΈ
scsi_try_to_abort_cmd β ask the host to abort a SCSI command. That's it. That's the whole vibe β¨
π SYNOPSIS π
enum scsi_disposition scsi_try_to_abort_cmd (const struct
scsi_host_template *hostt , struct scsi_cmnd *scmd );
π¦ ARGUMENTS π¦
hosttβ the SCSI driver host template π like, the whole personality of your host right here.scmdβ the SCSI cmd used to send a target reset. Yes bestie, that one.
β DESCRIPTION β
Return value: SUCCESS, FAILED, or FAST_IO_FAIL. Three little icons, one function, and you gotta know which one you're getting π
π NOTES π
Okay this part is lowkey the most important, so pay attention π
SUCCESS does not necessarily indicate that the command has been aborted β it only indicates that the LLDDs has cleared all references to that command. Like, don't @ me, that's just what it means π
LLDDs should return FAILED only if an abort was required but could not be executed. No cap.
LLDDs should return FAST_IO_FAIL if the device is temporarily unavailable (eg due to a link down on FibreChannel). Temporarily!! Unavailable!! It's giving flaky connection energy π
π SEE ALSO π
Kernel file ./drivers/scsi/scsi_error.c β go read it, it's iconic π
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_eh_prep_cmnd(9)scsi_eh_restore_cmnd(9)scsi_send_eh_cmnd(9)scsi_request_sense(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)
Okay that's the whole page, bestie, you ate that π This little gem lives in ./drivers/scsi and the version date on it is October 2026 β so yeah, mark your calendar, 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