__relay_write(9)
β¨ 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 π¦
- Kernel file
./include/linux/relay.hπ relay_write(9)πrelay_reserve(9)π«subbuf_start_reserve(9)π§
bye bestie β this was __relay_write(9) from ./include/linux, dated October 2026 π
π«Ά
π¦ 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