Lines Matching +full:master +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.
30 master add/remove events
32 userspace command for bus master
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
72 or master's id, which is assigned to bus master device
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;
88 which will contain list of all registered master ids in the following
97 Each message is at most 4k in size, so if number of master devices
106 id is equal to the bus master id to use for searching]
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) +
133 id is equal to the bus master id to use for searching]
140 Each command (either root, master or slave with or without w1_netlink_cmd
147 If reply is generated for master or root command (which do not have
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
178 When all commands (w1_netlink_cmd) are processed master device is unlocked
188 Sequence number for event messages is appropriate bus master sequence number
189 increased with each event message sent "through" this master.
198 1. Documentation/driver-api/connector.rst
202 read/write/search commands for all master/slave devices found on the bus.