iscsi_complete_scsi_task(9)
β¨ iscsi_complete_scsi_task(9) β¨
okay bestie, welcome to the Kernel API Manual π this one's a lil function from the kernel side of things and honestly she's doing a lot with very little. let's get into it π«Ά
πΈ NAME πΈ
iscsi_complete_scsi_task β finish scsi task normally β¨ (yes that's the whole vibe, she just... finishes it. normally. no drama, no chaos, just closure π)
π SYNOPSIS π
void iscsi_complete_scsi_task (struct iscsi_task *task , uint32_t
exp_cmdsn , uint32_t max_cmdsn );
like, she returns void because she's not here to give you answers, she's here to complete a task π periodt.
π¦ ARGUMENTS π¦
taskβ the iscsi task for the scsi cmd π― this is the lil guy you're wrapping up.exp_cmdsnβ the expected cmd sn, and it's in cpu format (not whatever endian nonsense, okay? cpu format, we been knew π ).max_cmdsnβ the max cmd sn, also in cpu format β
π DESCRIPTION π
so here's the tea π: this one is used when drivers do not need β or flat out cannot β perform lower level pdu processing. like, that's the whole use case, no cap.
she's called with session back_lock π don't forget that, bestie, that's important. lock discipline is main character energy π
π SEE ALSO π
the whole friend group π all of these live in the Kernel file ./drivers/scsi/libiscsi.c and honestly they're all icons:
iscsi_prep_data_out_pdu(9)iscsi_check_tmf_restrictions(9)iscsi_prep_scsi_cmd_pdu(9)iscsi_free_task(9)__iscsi_put_task(9)iscsi_complete_task(9)iscsi_alloc_mgmt_task(9)iscsi_send_mgmt_task(9)iscsi_scsi_cmd_rsp(9)iscsi_data_in_rsp(9)iscsi_nop_out_rsp(9)iscsi_itt_to_task(9)__iscsi_complete_pdu(9)iscsi_itt_to_ctask(9)iscsi_requeue_task(9)iscsi_data_xmit(9)iscsi_suspend_queue(9)iscsi_suspend_tx(9)iscsi_suspend_rx(9)iscsi_conn_unbind(9)iscsi_eh_session_reset(9)iscsi_eh_target_reset(9)iscsi_eh_recover_target(9)iscsi_host_add(9)iscsi_host_alloc(9)iscsi_host_remove(9)iscsi_session_setup(9)iscsi_session_free(9)iscsi_session_teardown(9)iscsi_conn_setup(9)iscsi_conn_teardown(9)
and that's the whole page, bestie π§ no notes, she ate π
this iconic lil doc came from ./drivers/scsi and is dated October 2026 π catch you in the next manpage, mwah π«Ά
π¦ 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