__relay_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

__relay_write β€” write data into the channel πŸ’– straight outta the Kernel API Manual, bestie.


🌸 SYNOPSIS 🌸

void __relay_write (struct rchan *chan , const void *data , size_t
       length );

πŸŽ€ ARGUMENTS πŸŽ€

  • chan β€” the relay channel, periodt 🫢
  • data β€” the data to be written ✨
  • length β€” number of bytes to write πŸ”’

πŸ’… DESCRIPTION πŸ’…

okay so __relay_write writes data into the current cpu's channel buffer. literally its whole job πŸ’–

It protects the buffer by disabling preemption. no cap, that's the safety vibe πŸ›‘οΈ

Use relay_write if you might be logging from interrupt context β€” that's the one you want in that situation, iykyk πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹


bye bestie β€” this was __relay_write(9) from ./include/linux, dated October 2026 πŸ’…πŸ«Ά

πŸ“¦ where this page comes from