scsi_eh_get_sense(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ scsi_eh_get_sense(9) πŸŽ€

okay so this is a page from the Kernel API Manual, bestie β€” it's called scsi_eh_get_sense and it's all about getting device sense data. let's get into it πŸ’…


✨ NAME ✨

scsi_eh_get_sense β€” get device sense data. that's the whole vibe, no cap 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

int scsi_eh_get_sense (struct list_head *work_q , struct list_head *done_q );

🌸 ARGUMENTS 🌸

  • work_q β€” queue of commands to process. this is the "to-do list" pile πŸ’–
  • done_q β€” queue of processed commands. the "already handled it, bestie" pile ✨

πŸ’œ DESCRIPTION πŸ’œ

so what this does is: it checks whether we need to request sense information. and if so? it goes and gets it right now β€” so we have a better idea of what to do next. lowkey just gathering the info before we make moves πŸ”₯


😭 NOTES 😭

okay so there's an unfortunate side effect here and we have to talk about it: if a shost adapter does not automatically request sense information, we end up shutting it down before we request it. yeah. πŸ’€

all drivers should be requesting sense information internally these days, so for now all I have to say is tough noogies if you end up in here πŸ™ˆ

XXX: long term this code should go away, but that needs an audit of all LLDDs first. so like, it's on the list, but the list is long, iykyk 🧚

🌈 SEE ALSO 🌈

kernel file ./drivers/scsi/scsi_error.c β€” plus literally this entire friend group:


and that's the whole page, bestie!! πŸŽ€βœ¨ this one came from the source ./drivers/scsi, dated October 2026 β€” and the manual is scsi_eh_get_sense(9), which we already knew because it's literally the title πŸ’– slay, go fix your SCSI errors, ily 🫢

πŸ“¦ where this page comes from