iscsi_tcp_r...gment_is_hdr(9)
π iscsi_tcp_recv_segment_is_hdr(9) π
okay so this is a page from the Kernel API Manual, section 9 β yes bestie, we're in the deep kernel lore now, and honestly? it's giving "I read the source for fun" energy and I'm obsessed π§β¨
πΈ NAME πΈ
iscsi_tcp_recv_segment_is_hdr β the little guy that tests if we are reading in a header π
Like literally that's its whole job. It checks the vibe of the current segment and tells you "hey, this is a header situation."
β¨ SYNOPSIS β¨
int iscsi_tcp_recv_segment_is_hdr (struct iscsi_tcp_conn *tcp_conn );
so it returns an int and takes exactly one thing. no drama, no extra args, she's lowkey minimal π
π¦ ARGUMENTS π¦
tcp_connβ the iscsi tcp conn π that's it, that's the whole parameter list. one connection struct, hand it over, done.
π₯ DESCRIPTION π₯
returns non zero if we are currently processing or setup to process a header.
no cap, that's the entire behaviour. non-zero = header mode activated π zero = not header mode, we're doing something else bestie. and yes, it covers both "we're doing it right now" and "we're all set up to do it" β both of those count as a non-zero return fr fr β
it's a vibe check for headers. a header vibe check, if you will π
π SEE ALSO π
okay so the kernel file for all this lives at ./drivers/scsi/libiscsi_tcp.c β and here's the whole squad of related functions, all of them, not skipping a single one π«Ά
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_skb(9)iscsi_tcp_task_init(9)iscsi_tcp_task_xmit(9)
go read them, they're iconic, iykyk π
π friendly reminder: this is kernel-level stuff, so if you're poking at these functions you are literally in the iSCSI TCP receive path. main character energy, but also be careful bestie π
mwah π that's the page! it lives down in ./drivers/scsi, dated October 2026, and it's part of the Kernel API Manual β same header, same footer, same energy, just with way more sparkle β¨π slay, periodt π
π¦ 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