__relay_reset(9)
π
__relay_reset(9) β Kernel API Manual, bestie edition π
okay so we're doing a manual page from the Kernel API Manual, section 9, and the star of the show is __relay_reset. yes it has two underscores, yes it's that girl, no we are not dropping them.
β¨ NAME β¨
__relay_reset β reset a channel buffer π
Like, it resets the buffer. That's the whole vibe. Reset. Channel buffer. Iconic.
πΈ SYNOPSIS πΈ
void __relay_reset (struct rchan_buf *buf , unsigned int init );
Returns nothing (void), takes two things, does the thing. Simple as. π«Ά
π¦ ARGUMENTS π¦
bufβ the channel buffer π the actual buffer bestie, the one getting reset, the main character of this whole operation.initβ1if this is a first-time initialization β¨ so like, pass1when it's the buffer's very first glow-up and not a redo. That distinction is literally load-bearing, don't fumble it.
π DESCRIPTION π
okay so here's the tea: this page is not gonna spell out the effect for you, because it doesn't. it says, and I quote the energy, see relay_reset for description of effect. so if you want to know what resetting actually does to the buffer, go read relay_reset(9). that's it, that's the description, no cap. π
π SEE ALSO π
Kernel file ./kernel/relay.c β go read the source if you want the real tea π
And the whole relay friend group, in this exact order:
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_close_buf(9)relay_open(9)relay_switch_subbuf(9)relay_subbufs_consumed(9)relay_close(9)relay_flush(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)
squad goals, honestly. π
aaaand that's the page!! π§ from ./kernel, dated October 2026, brought to you by the one and only __relay_reset(9) β stay hydrated, pass 1 on first init, and go read relay_reset if you want the lore π
π
π¦ 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