ENUM W1_NETLINK_MESSAGE_TYPES(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, we’re in the Kernel API Manual and this page is literally all about enum w1_netlink_message_types β€” it’s giving message type energy, no cap. i’m obsessed already. πŸ¦‹


🌸 NAME 🌸

enum w1_netlink_message_types β€” message type. that’s the name, that’s the vibe, periodt. ✨


✨ SYNOPSIS ✨

bestie, here’s the exact enum shape β€” keep it character for character, don’t be cute with it:

enum w1_netlink_message_types {
    W1_SLAVE_ADD ,
    W1_SLAVE_REMOVE ,
    W1_MASTER_ADD ,
    W1_MASTER_REMOVE ,
    W1_MASTER_CMD ,
    W1_SLAVE_CMD ,
    W1_LIST_MASTERS

};

πŸŽ€ Constants πŸŽ€

these constants are the whole friend group, and every single one matters:

  • W1_SLAVE_ADD β€” notification that a slave device was added. πŸ’–
  • W1_SLAVE_REMOVE β€” notification that a slave device was removed. 🫢
  • W1_MASTER_ADD β€” notification that a new bus master was added. πŸ‘‘
  • W1_MASTER_REMOVE β€” notification that a bus master was removed. 😭
  • W1_MASTER_CMD β€” initiate operations on a specific master. πŸ”₯
  • W1_SLAVE_CMD β€” sends reset, selects the slave, then does a read/write/touch operation. literally the whole lil sequence, iykyk. πŸ’…
  • W1_LIST_MASTERS β€” used to determine the bus master identifiers. πŸŽ€

🌈 SEE ALSO 🌈

Kernel file ./drivers/w1/w1_netlink.h is the one to peek at, and the whole crew is enum w1_cn_msg_flags(9), struct w1_netlink_msg(9), enum w1_commands(9), and struct w1_netlink_cmd(9). go off, bestie. 🫢


mwah πŸ’‹ β€” source/version: ./drivers/w1, date: October 2026, page: enum w1_net...essage_types(9). byeee 🧚

πŸ“¦ where this page comes from