Lines Matching +full:slave +full:- +full:kernel
10 1. Events. They are generated each time a new master or slave device
21 [struct cn_msg] - connector header.
23 [struct w1_netlink_msg] - w1 netlink header.
24 __u8 type - message type.
28 slave add/remove events
35 userspace command for slave device
37 __u8 status - error indication from kernel
38 __u16 len - size of data attached to this header data
40 __u8 id[8]; - slave unique device id
42 __u32 id; - master's id
43 __u32 res; - reserved
47 [struct w1_netlink_cmd] - command for given master or slave device.
48 __u8 cmd - command opcode.
49 W1_CMD_READ - read command
50 W1_CMD_WRITE - write command
51 W1_CMD_SEARCH - search command
52 W1_CMD_ALARM_SEARCH - alarm search command
53 W1_CMD_TOUCH - touch command
55 W1_CMD_RESET - send bus reset
56 W1_CMD_SLAVE_ADD - add slave to kernel list
57 W1_CMD_SLAVE_REMOVE - remove slave from kernel list
58 W1_CMD_LIST_SLAVES - get slaves list from kernel
59 __u8 res - reserved
60 __u16 len - length of data for this command
62 __u8 data[0] - data for this command
71 either 8 bytes of slave unique id in host order,
77 read request. Replies are not combined when sent - i.e. typical reply
83 cmd->len;
84 w1_netlink_msg.len = sizeof(struct w1_netlink_cmd) + cmd->len;
85 w1_netlink_cmd.len = cmd->len;
116 [64bit-id0 ... 64bit-idN]
119 w1_netlink_cmd->len = N * 8; where N is number of IDs in this message.
124 w1_netlink_msg->len = sizeof(struct w1_netlink_cmd) + N * 8;
125 cn_msg->len = sizeof(struct w1_netlink_msg) +
140 Each command (either root, master or slave with or without w1_netlink_cmd
169 master or slave request, according to w1_netlink_msg.type field.
170 Then master or slave device is searched for.
171 When found, master device (requested or those one on where slave device
172 is found) is locked. If slave command is requested, then reset/select
198 1. Documentation/driver-api/connector.rst
202 read/write/search commands for all master/slave devices found on the bus.