ata_scsi_cmd_error_handler(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, meet ata_scsi_cmd_error_handler β€” the error callback for a list of commands. This page is from the Kernel API Manual, and it is so iconic for anyone deep in libata error handling. πŸŽ€


✨ SYNOPSIS ✨

int ata_scsi_cmd_error_handler (struct Scsi_Host *host , struct ata_port *ap , struct list_head *eh_work_q );

πŸŽ€ ARGUMENTS πŸŽ€

  • host β€” the scsi host containing the port. 🫢
  • ap β€” the ATA port within the host.
  • eh_work_q β€” the list of commands to process.

πŸ¦‹ DESCRIPTION πŸ¦‹

So this function processes the given list of commands and returns the finished ones to ap->eh_done_q. It is the first part of the libata error handler that processes a given list of failed commands. periodt. πŸ’…

And the return value? It is the number of commands that timed out. no cap. ✨


🌈 SEE ALSO 🌈

Kernel file ./drivers/ata/libata-eh.c β€” plus the whole bestie lineup:


mwah πŸ’‹ β€” this whole page is from the Kernel API Manual, source/version ./drivers/ata, dated October 2026, and it is all about ata_scsi_cmd_error_handler(9). go touch some kernel code, bestie 🫢✨

πŸ“¦ where this page comes from