splice_direct_to_actor(9)
π splice_direct_to_actor(9) π
okay so real talk, this is a page from the Kernel API Manual and it's genuinely one of the slayest little helpers in ./fs. bestie, let's get into it π«Ά
β¨ NAME β¨
splice_direct_to_actor β splices data directly between two non-pipes π₯
like, no pipe in the middle. none. zero. we don't need it. iconic behavior honestly.
π SYNOPSIS π
ssize_t splice_direct_to_actor (struct file *in , struct splice_desc *sd
, splice_direct_actor *actor );
literally the whole signature right there, copy it exactly, don't touch it π
πΈ ARGUMENTS πΈ
inβ the file we're splicing from, i.e. our source file, the main character of this operation πsdβ the actor information on where to splice to β this is the "where we're going bestie" struct πactorβ the thing that actually handles the data splicing, the one doing the work fr fr π§
π¦ DESCRIPTION π¦
so this is a special case helper β¨ β it exists to splice directly between two points without requiring an explicit pipe. no pipe, no problem, we're going point-to-point π
but here's the juicy internal detail: internally, an allocated pipe is cached in the process, and it gets reused during the lifetime of that process. so like... the pipe is there, it's just not your pipe, it's the process's pipe, and it's chilling in the cache the whole time π lowkey efficient ngl
β SEE ALSO β
all the siblings, the whole friend group, in ./fs/splice.c:
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)splice_from_pipe(9)iter_file_splice_write(9)splice_to_socket(9)vfs_splice_read(9)do_splice_direct(9)splice_file_range(9)
go read them all, i'll wait π
π tiny heads up bestie: this whole page lives under the ./fs source, and it's dated October 2026 in the Kernel API Manual. that's the version tag, that's the date, no cap. mwah, bye π
slay, you now understand splice_direct_to_actor(9). 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