---
name: "struct_w1_netlink_msg"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/struct_w1_netlink_msg"
---

# struct\_w1\_netlink\_msg(9)

holds w1 message type, id, and result

## NAME

struct\_w1\_netlink\_msg - holds w1 message type, id, and result

## SYNOPSIS

```
struct w1_netlink_msg {
  __u8 type;
  __u8 status;
  __u16 len;
  union id;
  __u8 data[0];
};
```

## MEMBERS

type

one of enum w1\_netlink\_message\_types

status

kernel feedback for success 0 or errno failure value

len

length of data following w1\_netlink\_msg

id

union holding master bus id (msg.id) and slave device id (id\[8\]).

data\[0\]

start address of any following data

## DESCRIPTION

The base message structure for w1 messages over netlink. The netlink connector data sequence is, struct nlmsghdr, struct cn\_msg, then one or more struct w1\_netlink\_msg (each with optional data).

## AUTHOR

**David Fries** \<David@Fries.net\>

Author.

## COPYRIGHT
