w1_netlink_send_error(9)
β¨ w1_netlink_send_error(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for w1_netlink_send_error(9) β yes the title is the same as the function name, we love a self-titled icon π
π NAME π
w1_netlink_send_error β sends the error message now. like, immediately. no queueing, no waiting, we are NOT doing the whole song and dance today π
π¦ SYNOPSIS π¦
void w1_netlink_send_error (struct cn_msg *cn , struct w1_netlink_msg
*msg , int portid , int error );
literally that's the whole signature, copy it exactly bestie, don't be creative with it π«Ά
πΈ ARGUMENTS πΈ
cnβ the originalcn_msg. yeah, the one you already had. we're reusing it, sustainability queen π±msgβ the originalw1_netlink_msg. also the one you already had β¨portidβ where to send it. that's the destination, keep track of it πerrorβ the error status. the whole reason we're here π
π DESCRIPTION π
Use this when a block isn't available to queue the message to, and cn and msg might not be contiguous.
heads up bestie: that "might not be contiguous" part is doing a LOT of heavy lifting β the function is built to cope withcnandmsgnot sitting next to each other in memory, which is exactly why you use this one instead of the queue-y version. ikyk π
π SEE ALSO π
Kernel file ./drivers/w1/w1_netlink.c β and the whole squad:
okay that's the whole page, go forth and send your errors responsibly π§π
sign-off szn π this lil beauty lives in ./drivers/w1, hand-dated October 2026, and it's filed under w1_netlink_send_error(9) β periodt. π
π
π¦ 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