iscsi_conn_setup(9)
π iscsi_conn_setup(9) β a Kernel API Manual moment β¨
okay so bestie, welcome to the iscsi_conn_setup(9) page, straight out of the Kernel API Manual. this is the function that literally makes your iscsi_cls_conn and your iscsi_conn β like, it births both of them, no cap. two for the price of one, we love a multitasker π
β¨ NAME β¨
iscsi_conn_setup β create iscsi_cls_conn and iscsi_conn π«Ά
πΈ SYNOPSIS πΈ
struct iscsi_cls_conn * iscsi_conn_setup (struct iscsi_cls_session
*cls_session , int dd_size , uint32_t conn_idx );
it's giving "returns a pointer to a struct iscsi_cls_conn" and honestly? iconic. π
π¦ ARGUMENTS π¦
cls_sessionβ aniscsi_cls_session, bestie. that's the session you're hanging your new connection off of. πdd_sizeβ the size of the private driver data. yes,dd= driver data, and yes it's a size, so be normal about it. πconn_idxβ thecid. that's the connection id, and that's the whole personality it's bringing. β
π SEE ALSO π
so like, here's the whole friend group π β the kernel file lives at ./drivers/scsi/libiscsi.c, and these are all the siblings in libiscsi.c you should go say hi to:
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_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_teardown(9)
like, go read all of them, i'm serious. iykyk. πβ¨
and that's the whole page, bestie β no tabs left unturned π§
sign-off szn π this little beauty comes to you from ./drivers/scsi, dated October 2026, and it's the iscsi_conn_setup(9) page forever and always. 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