w1_reply_len(9)
π w1_reply_len(9) β the kernel API manual, but make it make sense πΈ
okay so bestie, welcome to the w1_reply_len page from the Kernel API Manual β¨ this one's short and sweet, we love a low-effort icon π
β¨ NAME β¨
w1_reply_len β calculates the current reply length and compares it to maxlen π
π¦ SYNOPSIS π¦
u16 w1_reply_len (struct w1_cb_block *block );
literally that's the whole call, no cap π
πΈ ARGUMENTS πΈ
blockβ the block you want to calculate, bestie. that's the one. that's the whole argument list π«Ά
π DESCRIPTION π
okay so here's the vibe: this function calculates the current message length π₯ and yes, that length includes possible multiple cn_msg and data β so if there's more than one of them in there, they all count, periodt β¨
the one thing it does not count is the first sizeof(struct cn_msg) β that gets excluded π so don't come for me when the number looks a little smaller than you expected, it's by design π
the result is directly comparable to maxlen and is usable to send the message π (the original says "Direclty compariable" and honestly? relatable typo, we still understood her π)
π SEE ALSO π
- Kernel file
./drivers/w1/w1_netlink.cπ¦ (go read it, iykyk) w1_reply_make_space(9)w1_netlink_setup_msg(9)w1_netlink_send_error(9)w1_netlink_send(9)
and that's the whole page!! π it lives in ./drivers/w1, and this little gem is dated October 2026 β mark your calendars bestie, the w1 netlink girlies ate and left no crumbs π
βπ§π
π¦ 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