__iscsi_complete_pdu(9)
π
__iscsi_complete_pdu (9) β like, the Kernel API Manual, bestie β¨
okay so welcome to the glow-up of __iscsi_complete_pdu, straight out of the Kernel API Manual. it's a kernel function, it's lowkey iconic, and we're gonna get into it π
β¨ NAME β¨
__iscsi_complete_pdu β bestie, it literally just completes pdu. that's the whole vibe. no cap π
π¦ SYNOPSIS π¦
int __iscsi_complete_pdu (struct iscsi_conn *conn , struct iscsi_hdr
*hdr , char *data , int datalen );
she returns an int, she takes four args, she's booked and busy π
πΈ ARGUMENTS πΈ
connβ the iscsi conn. your connection bestie π«Άhdrβ the iscsi header. the header of the whole situation β¨dataβ the data buffer. where the data lives, obvi πdatalenβ the len of the data buffer. yes bestie, the length of that data buffer β
π DESCRIPTION π
so here's the tea β β __iscsi_complete_pdu completes pdu processing by freeing any resources that were allocated at queuecommand or send generic. like, she's the cleanup main character, she's closing the loop, she's freeing the stuff that got allocated earlier. periodt π
β οΈ okay important, don't skip this part: the sessionback_lockmust be held, and verifyittmust have been called. like fr fr, that's not optional, that's the whole vibe check for calling this function π
π§ SEE ALSO π§
the kernel file ./drivers/scsi/libiscsi.c β go read her, she's the source of truth π
and here's the whole friend group, all the (9) girlies and besties you should also go look at:
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_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)
like, that's 31 whole icons, we love a crossover episode π«Άπ
and that's the page, bestie π this lil manpage lives in ./drivers/scsi, dated October 2026, and it's brought to you as __iscsi_complete_pdu(9). mwah, go hold that back_lock π
β¨
π¦ 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