relay_file_r...subbuf_avail(9)
π relay_file_r...subbuf_avail(9)
okay so bestie, welcome to the Kernel API Manual β¨ β yes the title on this one is literally relay_file_r...subbuf_avail(9) with the lil dots in the middle, that's not me being lazy, that's just how the page is named, iykyk π«Ά
πΈ NAME πΈ
relay_file_read_subbuf_avail β returns how many bytes are available in a sub-buffer. that's it, that's the whole vibe π
π¦ SYNOPSIS π¦
size_t relay_file_read_subbuf_avail (size_t read_pos , struct rchan_buf *buf );
π ARGUMENTS π
read_posβ the file read position, like where you're at in the story rn πbufβ the relay channel buffer. the main character, honestly π
β SEE ALSO β
literally the whole relay.c friend group, no cap π§ β the kernel file is ./kernel/relay.c, and it hangs out with:
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_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_start_pos(9)relay_file_read_end_pos(9)
ngl that's a whole squad and you should probably go read them all if you're messing with relay buffers fr fr π
this lil page came from the ./kernel source, dated October 2026 β mwah, bye bestie, go read some bytes πβ¨
π¦ 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