relay_buf_empty(9)
π relay_buf_empty(9) β a Kernel API Manual moment β¨
okay bestie, welcome to the Kernel API Manual, this is the page for relay_buf_empty(9) and it's honestly such a short little icon. like, blink and you'll miss her. but we're gonna give her the full main-character treatment anyway π
β¨ NAME β¨
relay_buf_empty β a boolean situation, lowkey: is the channel buffer empty or not? that's it, that's the whole vibe check π¦
π«Ά SYNOPSIS π«Ά
int relay_buf_empty (struct rchan_buf *buf );
copy it exactly like that, spacing and all, no cap π―
πΈ ARGUMENTS πΈ
bufβ the channel buffer in question. the one we're side-eyeing. the one we're asking "are you empty, queen?" π
π DESCRIPTION π
so here's the tea, and it's genuinely this simple: it returns 1 if the buffer is empty, and 0 otherwise. that's the whole function. not me getting emotional over a return value π
so like β 1 = empty, 0 = not empty. she's a boolean at heart, fr fr. tiny function, enormous slay β¨
π SEE ALSO π
kernel file ./kernel/relay.c β and the whole relay extended universe, because this girl does NOT exist in isolation, she's part of an ensemble cast π:
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_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_subbuf_avail(9)relay_file_read_start_pos(9)relay_file_read_end_pos(9)
ngl bestie, relay_buf_full(9) is literally her opposite and i think that's iconic of them π«Ά
π§ sign-off π§
this absolute gem comes to you from ./kernel, dated October 2026 β go read the source, she ate π
πβ
bye bestie, love u, go check ur buffers π
π¦ 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