STRUCT W1_NETLINK_MSG(9)
π NAME π
Okay bestie, welcome to the Kernel API Manual page for struct w1_netlink_msg(9) β and it literally holds w1 message type, id, and result. Slay β¨
πΈ SYNOPSIS πΈ
struct w1_netlink_msg {
__u8 type;
__u8 status;
__u16 len;
union {
__u8 id[8];
struct w1_mst {
__u32 id;
__u32 res;
} mst;
} id;
__u8 data[];
};
No cap, that's the whole shape π«Ά
π Members π
typeβ one ofenum w1_netlink_message_types.statusβ kernel feedback for success0orerrnofailure value.lenβ length of data followingw1_netlink_msg.idβ union holding bus master id (msg.id) and slave device id (id[8]).id.idβ Slave ID (8 bytes).id.mstβ bus master identification.id.mst.idβ bus master ID.id.mst.resβ bus master reserved.dataβ start address of any following data.
The way these fields just line up? Obsessed π
π₯ Description π₯
This is the base message structure for w1 messages over netlink, periodt. The netlink connector data sequence is, struct nlmsghdr, struct cn_msg, then one or more struct w1_netlink_msg (each with optional data). Like a little chain of messages, iykyk π
π SEE ALSO π
Go be nosy, bestie:
- Kernel file
./drivers/w1/w1_netlink.h enum w1_cn_msg_flags(9)enum w1_netlink_message_types(9)enum w1_commands(9)struct w1_netlink_cmd(9)
Signed off with ./drivers/w1, October 2026, and all the love for struct w1_netlink_msg(9) π«Άπ
π¦ 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