iscsi_tcp_segment_map(9)
π
iscsi_tcp_segment_map β a kernel API moment (manual page iscsi_tcp_segment_map(9), yes bestie that's the whole title)
okay so picture this: you're deep in the kernel, the iscsi_tcp vibes are immaculate, and somebody has to map the current S/G page. That's this function. That's the whole gig. π¦
β¨ NAME β¨
iscsi_tcp_segment_map β map the current S/G page
Like, literally just that. It maps the current scatter/gather page. No cap. π
πΈ SYNOPSIS πΈ
void iscsi_tcp_segment_map (struct iscsi_segment *segment , int recv );
returns nothing (void), takes two things, moves on with its life. periodt. β¨
π ARGUMENTS π
segmentβ aniscsi_segment. It's the segment. It's the whole point. π«Άrecvβ pass1if you're calling from the recv path. That's it, that's the flag. iykyk.
π₯ DESCRIPTION π₯
Okay so here's the tea: we only need to possibly kmap data if scatter lists are being used. Why? Because the iscsi passthrough and internal IO paths will never use high mem pages. Never ever. Not once. So like... no need to be dramatic about it. π
So if scatter lists are in play, that's when this function does its little kmap thing. If not β nothing to do, we're chilling. π
ngl this is one of those "small function, very specific job" situations. Respect it. π
π SEE ALSO π
Kernel file ./drivers/scsi/libiscsi_tcp.c and, like, the entire friend group:
iscsi_tcp_segment_init_sg(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 them, they're all iconic in their own way. π§β
okay that's the page!! it lives in ./drivers/scsi, it's dated October 2026, and it's filed under iscsi_tcp_segment_map(9) β manual page iscsi_tcp_segment_map(9), obviously. mwah π slay, go map some pages 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