dequeue_next_cmd(9)
π dequeue_next_cmd β a whole Kernel API Manual moment (9) β¨
okay so bestie, welcome to the Kernel API Manual section 9 energy π this one's called dequeue_next_cmd, and it's literally about dequeuing a command for processing. the way that name just tells you what it does?? iconic. no notes. π«Ά
πΈ SYNOPSIS πΈ
like, here's the whole vibe in one line:
struct scsi_cmnd * dequeue_next_cmd (struct Scsi_Host *instance );
that's it. that's the whole signature. copy it exactly, don't come for me about the space before the ) β it's canon π
π¦ ARGUMENTS π¦
instanceβ the scsi host instance π that's your one and only input, bestie, and yes it's astruct Scsi_Host *
π DESCRIPTION π
so here's the tea β β these commands that live on the autosense queue get priority. they get first dibs. main character energy only π and why? because those commands need autosense, on account of they came back with a CHECK CONDITION result π that's literally the whole reason.
then, if a command is found for a target that is not already busy, it hands you back a command pointer. slay. and if there isn't one? you get NULL. no cap, that's it, that's the function π«‘
ngl bestie, remember: busy target = no command for you π the function's gonna give you NULL and you just gotta deal.
π₯ SEE ALSO π₯
okay so this is the part where I list every single one of these, because the kernel file ./drivers/scsi/NCR5380.c is out here with a whole friend group and we are NOT leaving anyone out π:
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)NCR5380_main(9)NCR5380_intr(9)NCR5380_select(9)NCR5380_transfer_pio(9)do_reset(9)do_abort(9)list_find_cmd(9)NCR5380_abort(9)NCR5380_host_reset(9)
yeah that's nineteen of them. I counted. go read them all, iykyk πβ¨
and that's the page!! π
sourced from ./drivers/scsi, dated October 2026 β mwah, kissies, go forth and dequeue responsibly bestie ππ§π
π¦ 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