relay_destroy_channel(9)
π relay_destroy_channel(9) β the kernel API manual, but make it cute π
okay so bestie, welcome to the Kernel API Manual entry for relay_destroy_channel(9) β yes the (9) is giving "section 9, kernel developer era" and honestly? iconic. this is the whole page, no skips, no cuts, we're doing the full read π«Ά
β¨ NAME β¨
relay_destroy_channel β literally just frees the channel struct. that's the whole vibe. one job, does it, periodt π
π¦ SYNOPSIS π¦
void relay_destroy_channel (struct kref *kref );
like yes, that's the entire signature. void return because it doesn't report back to you, it just does the thing and dips π
πΈ ARGUMENTS πΈ
krefβ the target kernel reference that contains the relay channel π this is the struct you're handing over, and it's the kernel reference wrapping your relay channel, so likeβ¦ know which one you're passing, okay? π
π DESCRIPTION π
okay so here's the tea: relay_destroy_channel frees the channel struct. that's it, that's the function.
but β and this is the important part, bestie β it should only be called from kref_put. not "you could also call it from here," not "maybe from there," no. only from kref_put. this is not a suggestion, this is the rule π
π fr fr do not go calling this from random places, the manpage said only from kref_put and we respect the manpage in this house
β SEE ALSO β
the whole relay.c cinematic universe, bestie β grab a snack, there's a lot:
Kernel file ./kernel/relay.c and then: relay_mmap_prepare_buf(9), relay_alloc_buf(9), relay_create_buf(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_subbuf_avail(9), relay_file_read_start_pos(9), relay_file_read_end_pos(9)
that's the full guest list, no plus-ones, everyone named gets an invite π
okay that's the page!! mwah π this one lives in ./kernel, it's dated October 2026, and it's filed under relay_destroy_channel(9) β go free that channel struct responsibly bestie, and remember: kref_put only π₯β¨π
π¦ 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