relay_flush(9)
π relay_flush(9) β from the Kernel API Manual, bestie
okay so picture this: you're deep in relay land, right? that's the kernel's whole buffered-channel situation. and relay_flush is the little function that says "wrap it up, we're done here." that's literally the whole page. short, sweet, iconic. let's get into it π
β¨ SYNOPSIS β¨
void relay_flush (struct rchan *chan );
no return value, no drama. it just does the thing and dips. π
πΈ ARGUMENTS πΈ
chanβ the channel π that's it, that's the argument. the channel you're flushing. she's the main character here.
π¦ DESCRIPTION π¦
so what does it actually do? it flushes all the channel buffers β every single one, no cap β which basically means it forces a buffer switch. π₯
think of it like hitting "send" on the group chat: everything sitting in the buffers gets pushed along and the channel moves on to the next one. periodt. β¨
ngl, that's the entire description. the manpage is not long. she said what she said and left. π
π SEE ALSO π
like, the whole relay fam, all up in here β the kernel file lives at ./kernel/relay.c, and these are the siblings you should also go read, fr fr:
relay_mmap_prepare_buf(9)relay_alloc_buf(9)relay_create_buf(9)relay_destroy_channel(9)relay_destroy_buf(9)relay_remove_buf(9)relay_buf_empty(9)relay_buf_full(9)wakeup_readers(9)__relay_reset(9)relay_reset(9)relay_close_buf(9)relay_open(9)relay_switch_subbuf(9)relay_subbufs_consumed(9)relay_close(9)relay_stats(9)relay_file_open(9)relay_file_mmap_prepare(9)relay_file_poll(9)relay_file_release(9)relay_file_read_subbuf_avail(9)relay_file_read_start_pos(9)relay_file_read_end_pos(9)
π«Ά the sign-off π«Ά
this little baddie comes to you from ./kernel π and she's stamped October 2026 β β so yeah, read her, love her, flush responsibly. mwah ππ
π¦ 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