sd_eh_reset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– sd_eh_reset(9) πŸ’–

okay so this is the Kernel API Manual page for sd_eh_reset(9), and it's giving β€œtiny reset function with big main-character energy” ✨


🌸 NAME 🌸

sd_eh_reset β€” reset the error handling callback, bestie πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

void sd_eh_reset (struct scsi_cmnd *scmd );

πŸŽ€ ARGUMENTS πŸŽ€

  • scmd β€” the sd-issued command that has failed. yep, that's the one 🫢

✨ DESCRIPTION ✨

So this function gets called by the SCSI midlayer before starting SCSI EH. no cap.

When we're counting medium access failures, we have to be careful to register it only only once per device and SCSI EH run. because there might be several timed out commands, and those will cause the SCSI EH run already and set the device to offline 😭

So yeah: this function resets the internal counter before starting SCSI EH. iconic little cleanup moment, honestly πŸ‘‘

🌈 SEE ALSO 🌈

Kernel file: ./drivers/scsi/sd.c


xoxo, ur Unix bestie πŸ’…πŸ«Ά β€” source/version: ./drivers/scsi, date: October 2026, page: sd_eh_reset(9) πŸŽ€

πŸ“¦ where this page comes from