relay_buf_empty(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’œ:

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