splice_from_pipe(9)
π splice_from_pipe β bestie, it's a kernel function β¨
okay so this is splice_from_pipe(9) from the Kernel API Manual, and no cap it's lowkey iconic. it moves data from a pipe into a file. that's the whole vibe. let's get into it π«Ά
β¨ NAME β¨
splice_from_pipe β splice data from a pipe to a file
like literally what it says on the tin, bestie. pipe in, file out. slay. π
π¦ SYNOPSIS π¦
ssize_t splice_from_pipe (struct pipe_inode_info *pipe , struct file
*out , loff_t *ppos , size_t len , unsigned int flags , splice_actor
*actor );
six whole arguments, she's that girl. returns an ssize_t because of course she does π
π ARGUMENTS π
pipeβ the pipe to splice from. this is the source, the main character, the origin story πΈoutβ the file to splice to. the destination. the moment. the glow-up π¦pposβ position inout. it's a pointer to aloff_t, so like, she knows exactly where she is πlenβ how many bytes to splice. yes, that's the number of bytes. very demure, very mindful πflagsβ splice modifier flags,unsigned intflavored. little toggles, big energy β¨actorβ handler that splices the data. this one does the actual work, she's thesplice_actor *, the icon, the legend π
π₯ DESCRIPTION π₯
okay so the manual is being mysterious and just says: see __splice_from_pipe. iykyk. π
the one (1) difference, and this is the important part so listen up: this function locks the pipe inode. otherwise it's literally identical to __splice_from_pipe. like twins. same function energy, just with a lock. fr fr π«Ά
no cap, the only delta here is the inode lock β everything else? identical to __splice_from_pipe.
π SEE ALSO π
Kernel file ./fs/splice.c and honestly the whole splice friend group showed up for this one:
splice_to_pipe(9)copy_splice_read(9)splice_from_pipe_feed(9)splice_from_pipe_next(9)splice_from_pipe_begin(9)splice_from_pipe_end(9)__splice_from_pipe(9)iter_file_splice_write(9)splice_to_socket(9)vfs_splice_read(9)splice_direct_to_actor(9)do_splice_direct(9)splice_file_range(9)
the way that's thirteen whole entries π the whole squad, all in ./fs/splice.c. go read them. periodt. π
anyway bestie, that's the whole page π this one came to you from the source ./fs, dated October 2026, and yes β she's still splice_from_pipe(9) in the Kernel API Manual. mwah, go splice something πΈβ¨π
π¦ 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