scsi_run_queue(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… scsi_run_queue β€” like, the Kernel API Manual page you actually want to read ✨

okay bestie, so this is scsi_run_queue(9) from the Kernel API Manual, and honestly? it's giving "tiny function, huge responsibility" energy πŸ‘‘ it's a short one, so let's just get into it 🫢


🌸 SYNOPSIS 🌸

void scsi_run_queue (struct request_queue *q );

that's it. that's the whole signature. void return, one pointer in, zero drama πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • q β€” the queue of the last request, i.e. the one that just wrapped up. it's a struct request_queue *, and it's literally the vibe check for where we go next πŸ¦‹

✨ DESCRIPTION ✨

so the plot is: the previous command was completely finished πŸ’€ like, fully done, not mid, not pending, done done. and now scsi_run_queue is the main character whose whole job is β€” if possible β€” to start a new one πŸŽ€

that's literally the whole thing. previous request finished β†’ kick off the next one if we can πŸ”₯ no cap, it's a little function with a big "what happens next" job.


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/scsi/scsi_lib.c β€” that's where this lives, in case you want to go snoop πŸ™ˆ

and like, an absolutely iconic cast of friends, all in section 9, all alphabetically-ish adjacent in the source β€” enjoy the full list because we do not skip anybody here 😭

__scsi_queue_insert(9), scsi_queue_insert(9), scsi_failures_reset_retries(9), scsi_check_passthrough(9), scsi_execute_cmd(9), scsi_result_to_blk_status(9), scsi_rq_err_bytes(9), scsi_io_completion(9), scsi_alloc_sgtables(9), scsi_initialize_rq(9), scsi_alloc_request(9), scsi_dispatch_cmd(9), scsi_get_internal_cmd(9), scsi_put_internal_cmd(9), scsi_device_from_queue(9), scsi_block_requests(9), scsi_unblock_requests(9), scsi_mode_select(9), scsi_mode_sense(9), scsi_test_unit_ready(9), scsi_device_set_state(9), scsi_evt_emit(9), scsi_evt_thread(9), sdev_evt_send(9), sdev_evt_alloc(9), sdev_evt_send_simple(9), scsi_device_quiesce(9), scsi_device_resume(9), scsi_internal_device_block_nowait(9), scsi_device_block(9), scsi_internal_device_unblock_nowait(9), scsi_internal_device_unblock(9), scsi_block_targets(9), scsi_host_block(9), scsi_kmap_atomic_sg(9), scsi_kunmap_atomic_sg(9), scsi_vpd_lun_id(9), scsi_vpd_lun_serial(9), scsi_vpd_tpg_id(9), scsi_build_sense(9) πŸ¦‹πŸŒΈ


and that's the whole page, bestie β€” you ate that πŸ’… this one ships from ./drivers/scsi, dated October 2026, and it goes out to the Kernel API Manual crowd ⭐ mwah, love u, go read scsi_lib.c πŸ«ΆπŸ’–

πŸ“¦ where this page comes from