do_reset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… do_reset β€” Kernel API Manual, section 9 πŸŽ€

okay so bestie, welcome to do_reset(9) β€” the kernel API manual page you didn't know you needed, and now you're literally obsessed. sit down, hydrate, let's go ✨


🌸 NAME 🌸

do_reset β€” issue a reset command 🫢


✨ SYNOPSIS ✨

void do_reset (struct Scsi_Host *instance );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • instance β€” the adapter to reset. like, the whole adapter. it's giving "we're starting over" energy πŸ’«

πŸ’– DESCRIPTION πŸ’–

so what it does is issue a reset sequence to the NCR5380 and try and get the bus back into sane shape. bus said "i'm fine" but the bus was not, in fact, fine 😭 so we reset it. character development.

it also clears the reset interrupt flag, because there may be no handler for it. and why? okay so:

  • when the driver is initialized, the NCR5380_intr handler has not yet been installed πŸ‘€
  • and when in EH we may have released the ST DMA interrupt

so yeah, the flag gets cleared here because nobody else is gonna do it. it's giving main character energy of the interrupt flag πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

kernel file ./drivers/scsi/NCR5380.c β€” and the whole friend group:

like, the whole squad fr fr 🌈


that's the page, bestie πŸ’œ this little drop came out of ./drivers/scsi, dated October 2026 β€” no cap, go reset something (responsibly) πŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from