iscsi_prep_data_out_pdu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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