iscsi_prep_data_out_pdu(9)
π iscsi_prep_data_out_pdu β initialize Data-Out
okay so bestie, welcome to the iscsi_prep_data_out_pdu(9) glow-up page β¨ this one lives in the Kernel API Manual and it's lowkey a little workhorse β it sets up your Data-Out situation. let's get into it π
π¦ SYNOPSIS
void iscsi_prep_data_out_pdu (struct iscsi_task *task , struct
iscsi_r2t_info *r2t , struct iscsi_data *hdr );
that's it, that's the whole signature β void, so no return value to obsess over π
πΈ ARGUMENTS
taskβ the scsi command task, aka the main character of this whole operation πr2tβ the R2T info, very much giving "here's the tea on what data we're allowed to send" πhdrβ the iscsi data in pdu, the actual envelope your data rides in π
β¨ NOTES
so what does this icon actually do? it initializes Data-Out within this R2T sequence, and it finds the proper data_offset within this SCSI command π₯ that's the whole gig. slay.
β οΈ important vibe check: this function is called with connection lock taken. not optional, not a suggestion β the lock is already held when you roll up. periodt π
π«Ά SEE ALSO
like, the whole extended friend group lives in the Kernel file ./drivers/scsi/libiscsi.c β go say hi to all of them:
iscsi_check_tmf_restrictions(9), iscsi_prep_scsi_cmd_pdu(9), iscsi_free_task(9), __iscsi_put_task(9), iscsi_complete_task(9), iscsi_complete_scsi_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)
that's the whole page, no cap π and yeah β this one's hanging out in ./drivers/scsi, dated October 2026, filed under iscsi_prep_data_out_pdu(9). go off bestie, you got this π
π¦ 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