iscsi_tcp_segment_init_sg(9)
π« iscsi_tcp_segment_init_sg(9) β the Kernel API Manual, bestie edition π«
okay so real talk, this is a page from the Kernel API Manual (iscsi_tcp_segment_init_sg(9)), and honestly? it's a little short king but it serves. it's literally just here to tell you how to point a segment at a scatterlist entry. that's the whole vibe. slay.
π NAME π
iscsi_tcp_segment_init_sg β init the indicated scatterlist entry, no cap β¨
π¦ SYNOPSIS π¦
void iscsi_tcp_segment_init_sg (struct iscsi_segment *segment , struct
scatterlist *sg , unsigned int offset );
πΈ ARGUMENTS πΈ
segmentβ the buffer object π like, the thing you're setting up, y'know?sgβ ascatterlist, bestie. the actual list-of-scattered-bits situation.offsetβ byte offset into thatsgentry π so you're telling it exactly where to start, not just "somewhere in there".
β¨ DESCRIPTION β¨
so what does it do? it sets up the segment so that all the data that comes after this gets copied into the indicated sg entry β at the given offset. that's it. that's the whole plot π«Ά it's giving "point the vibe at the right spot" energy and honestly it ate.
not me writing a whole paragraph for one sentence but likeβ¦ that's what the page says, so here we are π
π₯ SEE ALSO π₯
the kernel file lives at ./drivers/scsi/libiscsi_tcp.c and it's got so many friends, fr fr:
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_recv_skb(9)iscsi_tcp_task_init(9)iscsi_tcp_task_xmit(9)
go read those too, they're the squad ππ
ngl this one's a short page but every detail is here β don't skip it, the sg entry won't init itself π§π
and that's the page!! courtesy of ./drivers/scsi, October 2026 β catch you in the next one, bestie πβπ
π¦ 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