do_reset(9)
π 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_intrhandler 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:
initialize_SCp(9)NCR5380_poll_politely2(9)NCR5380_print(9)NCR5380_print_phase(9)NCR5380_info(9)NCR5380_init(9)NCR5380_maybe_reset_bus(9)NCR5380_exit(9)complete_cmd(9)NCR5380_queue_command(9)dequeue_next_cmd(9)NCR5380_main(9)NCR5380_intr(9)NCR5380_select(9)NCR5380_transfer_pio(9)do_abort(9)list_find_cmd(9)NCR5380_abort(9)NCR5380_host_reset(9)
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
- 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