iscsi_data_xmit(9)
π iscsi_data_xmit β Kernel API Manual, bestie edition β¨
Okay so this is iscsi_data_xmit(9), from the Kernel API Manual, and honestly? It's a little baddie of a function with one job and a whole lot of friends (you'll see the SEE ALSO, it's giving reunion episode). Let's get into it π«Ά
πΈ NAME πΈ
iscsi_data_xmit β literally just xmit any command into the scheduled connection π« no cap, that's the whole vibe
β¨ SYNOPSIS β¨
int iscsi_data_xmit (struct iscsi_conn *conn );
π ARGUMENTS π
connβ the iscsi connection π¦ that's it, that's the one thing you pass in, and she is the main character here
π NOTES π
So here's the tea, bestie β β this function can return -EAGAIN, and if it does, the caller must re-schedule it again later or recover. Like, you cannot just ignore her, okay? She's saying "not right now, try again" and you gotta respect it π
A '0' return code means the xmit was successful β slay, we love a clean zero π periodt.
π¦ SEE ALSO π¦
The kernel file lives at ./drivers/scsi/libiscsi.c and it is highkey surrounded by icons β here's the whole friend group, no gatekeeping π:
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_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_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)
Go read them all, bestie, that's the assignment πβ¨
And that's a wrap on our little kernel moment π§π Big thank you to the source at ./drivers/scsi, dated October 2026, where this page came from β ily, mwah π And remember: it's iscsi_data_xmit(9), always in our hearts ππβ
π¦ 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