iscsi_tcp_recv_skb(9)
π iscsi_tcp_recv_skb(9) β the "process skb" one, from the Kernel API Manual
okay so bestie, picture this: you're deep in the kernel, there's a socket buffer staring at you, and somebody has to actually do something with it. That somebody is iscsi_tcp_recv_skb, and honestly? She ate. Let's get into it π«Ά
β¨ SYNOPSIS β¨
int iscsi_tcp_recv_skb (struct iscsi_conn *conn , struct sk_buff *skb ,
unsigned int offset , bool offloaded , int *status );
that's the whole vibe check right there β int in, bytes out, no cap π
π ARGUMENTS π
connβ the iscsi connection, aka the main character of this whole situation πΈskbβ the network buffer holding the header and/or data segment. literally the package we're opening π¦offsetβ offset inskb, because sometimes you don't start at the beginning, bestie πoffloadedβ aboolthat tells you whether the transfer was offloaded or not. just a lil yes/no slay β¨statusβ the iscsi TCP status result, which is where the answer gets written back. iconic behavior π
π¦ DESCRIPTION π¦
so what does she actually do? She'll return the status of the transfer in status β and then she'll also return the number of bytes copied. Two things at once, multitasking queen πβ¨
like, that's it, that's the job. She processes the skb, drops the status where you asked her to, and tells you how many bytes she got through. no drama, no notes π₯
ngl the docs are short here β if you want the actual mechanics, the SEE ALSO squad below is where the story continues π«Ά
π SEE ALSO π
all the besties she hangs out with in the Kernel file ./drivers/scsi/libiscsi_tcp.c:
iscsi_tcp_segment_init_sg(9)iscsi_tcp_segment_map(9)iscsi_tcp_segment_done(9)iscsi_tcp_segment_recv(9)iscsi_tcp_hdr_recv_prep(9)iscsi_tcp_cleanup_task(9)iscsi_tcp_data_in(9)iscsi_tcp_r2t_rsp(9)iscsi_tcp_hdr_dissect(9)iscsi_tcp_hdr_recv_done(9)iscsi_tcp_recv_segment_is_hdr(9)iscsi_tcp_task_init(9)iscsi_tcp_task_xmit(9)
the whole friend group fr fr π
aw and one last thing bestie β this page lives over in ./drivers/scsi, and it's stamped October 2026 π mwah, go read some more kernel docs, ily πβ¨π¦
π¦ 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