tcp_splice_read(9)
π tcp_splice_read(9) β a Kernel API Manual moment β¨
okay bestie, so this one lives in the Kernel API Manual and honestly it's giving "small function, big job" energy. let's get into it π«Ά
β¨ NAME β¨
tcp_splice_read β splice data from TCP socket to a pipe π
like, it takes the data chilling in your TCP socket and yeets it straight into a pipe. no cap.
π SYNOPSIS π
ssize_t tcp_splice_read (struct socket *sock , loff_t *ppos , struct
pipe_inode_info *pipe , size_t len , unsigned int flags );
that's the whole signature, copy it exactly, don't come for me π
π¦ ARGUMENTS π¦
sockβ the socket you're splicing from, bestie. this is the source vibe πpposβ position β and listen, it's not valid. like, at all. the manpage literally says so πpipeβ the pipe you're splicing to. this is the destination, the main character of the receiving side πlenβ number of bytes to splice, i.e. how much you're moving over πflagsβ splice modifier flags, the little knobs you can twist β
πΈ DESCRIPTION πΈ
will read pages from the given socket and fill them into a pipe. that's it, that's the whole tea β it's literally doing exactly what it says on the tin β pages come out of the socket, pages go into the pipe, everybody slays π
ngl it's a short description because the function is a short description of itself. iconic behaviour, honestly β¨
π§ SEE ALSO π§
- Kernel file
./net/ipv4/tcp.cβ go read it, iykyk π
and that's the page!! this little gem comes to you from ./net/ipv4, dated October 2026 β catch you in the next release, 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