scsi_finish_command(9)
π scsi_finish_command(9) π
okay so bestie, welcome to the Kernel API Manual, section 9 β this is the page for scsi_finish_command, and honestly? it's giving "the cleanup crew that actually slays." let's get into it π
β¨ NAME β¨
scsi_finish_command β cleanup and pass command back to upper layer
like, the whole vibe is: tidy up, then hand the command back upstairs. no cap.
πΈ SYNOPSIS πΈ
void scsi_finish_command (struct scsi_cmnd *cmd );
that's it. that's the whole function. void return, one pointer argument. iconic minimalism π«Ά
π¦ ARGUMENTS π¦
cmdβ the command. yeah. that's the description. the command. it's thestruct scsi_cmnd *you're finishing. lowkey the most self-explanatory argument ever, and we respect that π
π DESCRIPTION π
so what does it actually do? it passes the command off to the upper layer so the I/O request can be finished, and it wakes up the processes that are waiting on the results, etc. basically it's the "okay we're done here, everyone can stop waiting" moment. the main character energy of the completion path β¨
think of it as the closing-act: the lower layer did its thing, and now scsi_finish_command walks the command back upstairs so the upper layer can wrap up the I/O request and un-block anyone who's been sitting there waiting on results. it's literally the "your table is ready" text of the SCSI stack π
fr fr the "etc." in that description is doing a loooot of heavy lifting, but we're keeping it exactly as-is because the manpage said so and we don't invent lore here π
π₯ SEE ALSO π₯
kernel file ./drivers/scsi/scsi.c β that's the source of truth for this whole friend group π
scsi_change_queue_depth(9)scsi_track_queue_full(9)scsi_vpd_inquiry(9)scsi_get_vpd_page(9)scsi_get_vpd_buf(9)scsi_attach_vpd(9)scsi_report_opcode(9)scsi_cdl_check(9)scsi_cdl_enable(9)scsi_device_get(9)scsi_device_put(9)starget_for_each_device(9)__starget_for_each_device(9)__scsi_device_lookup_by_target(9)scsi_device_lookup_by_target(9)__scsi_device_lookup(9)scsi_device_lookup(9)
all of these are in the same friend group, so if you're deep in ./drivers/scsi anyway, go say hi π
π sign-off π
this page lives in ./drivers/scsi, it's dated October 2026, and it's part of the Kernel API Manual. that's the whole footer, bestie β now go finish some commands π
β¨π
π¦ 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