Home
last modified time | relevance | path

Searched refs:cn_msg (Results 1 – 13 of 13) sorted by relevance

/linux/drivers/connector/
A Dcn_proc.c35 BUILD_BUG_ON(sizeof(struct cn_msg) != 20); in buffer_to_cn_msg()
36 return (struct cn_msg *)(buffer + 4); in buffer_to_cn_msg()
71 struct cn_msg *msg; in proc_fork_connector()
101 struct cn_msg *msg; in proc_exec_connector()
125 struct cn_msg *msg; in proc_id_connector()
163 struct cn_msg *msg; in proc_sid_connector()
187 struct cn_msg *msg; in proc_ptrace_connector()
219 struct cn_msg *msg; in proc_comm_connector()
244 struct cn_msg *msg; in proc_coredump_connector()
277 struct cn_msg *msg; in proc_exit_connector()
[all …]
A Dconnector.c61 int cn_netlink_send_mult(struct cn_msg *msg, u16 len, u32 portid, u32 __group, in cn_netlink_send_mult()
68 struct cn_msg *data; in cn_netlink_send_mult()
121 int cn_netlink_send(struct cn_msg *msg, u32 portid, u32 __group, in cn_netlink_send()
136 struct cn_msg *msg = nlmsg_data(nlmsg_hdr(skb)); in cn_call_callback()
142 if (nlh->nlmsg_len < NLMSG_HDRLEN + sizeof(struct cn_msg) + msg->len) in cn_call_callback()
179 if (len < (int)sizeof(struct cn_msg) || in cn_rx_skb()
197 void (*callback)(struct cn_msg *, in cn_add_callback() argument
A Dcn_queue.c23 void (*callback)(struct cn_msg *, in cn_queue_alloc_callback_entry() argument
61 void (*callback)(struct cn_msg *, in cn_queue_add_callback() argument
/linux/drivers/hv/
A Dhv_utils_transport.c184 static void hvt_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in hvt_cn_callback()
220 struct cn_msg *cn_msg; in hvutil_transport_send() local
227 cn_msg = kzalloc(sizeof(*cn_msg) + len, GFP_ATOMIC); in hvutil_transport_send()
228 if (!cn_msg) in hvutil_transport_send()
230 cn_msg->id.idx = hvt->cn_id.idx; in hvutil_transport_send()
231 cn_msg->id.val = hvt->cn_id.val; in hvutil_transport_send()
232 cn_msg->len = len; in hvutil_transport_send()
233 memcpy(cn_msg->data, msg, len); in hvutil_transport_send()
234 ret = cn_netlink_send(cn_msg, 0, 0, GFP_ATOMIC); in hvutil_transport_send()
235 kfree(cn_msg); in hvutil_transport_send()
/linux/drivers/md/
A Ddm-log-userspace-transfer.c32 static struct cn_msg *prealloced_cn_msg;
59 struct cn_msg *msg = prealloced_cn_msg; in dm_ulog_sendto_server()
61 memset(msg, 0, sizeof(struct cn_msg)); in dm_ulog_sendto_server()
82 static int fill_pkg(struct cn_msg *msg, struct dm_ulog_request *tfr) in fill_pkg()
133 static void cn_ulog_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in cn_ulog_callback()
177 int overhead_size = sizeof(struct dm_ulog_request) + sizeof(struct cn_msg); in dm_consult_userspace()
200 memset(tfr, 0, DM_ULOG_PREALLOCED_SIZE - sizeof(struct cn_msg)); in dm_consult_userspace()
272 prealloced_ulog_tfr = prealloced + sizeof(struct cn_msg); in dm_ulog_tfr_init()
/linux/include/linux/
A Dconnector.h43 void (*callback) (struct cn_msg *, struct netlink_skb_parms *);
68 void (*callback)(struct cn_msg *, struct netlink_skb_parms *));
99 int cn_netlink_send_mult(struct cn_msg *msg, u16 len, u32 portid, u32 group, gfp_t gfp_mask);
122 int cn_netlink_send(struct cn_msg *msg, u32 portid, u32 group, gfp_t gfp_mask);
126 void (*callback)(struct cn_msg *, struct netlink_skb_parms *));
/linux/drivers/w1/
A Dw1_netlink.c25 struct cn_msg *first_cn; /* fixed once the structure is populated */
26 struct cn_msg *cn; /* advances as cn_msg is appeneded */
31 struct cn_msg request_cn;
117 block->cn = (struct cn_msg *)(block->cn->data + in w1_netlink_setup_msg()
137 w1_reply_make_space(block, sizeof(struct cn_msg) + in w1_netlink_queue_cmd()
196 struct cn_msg cn; in w1_netlink_send_error()
217 struct cn_msg cn; in w1_netlink_send()
400 struct cn_msg *cn; in w1_process_command_root()
585 reply_size += 2 * cmd_count * (sizeof(struct cn_msg) + in w1_cn_callback()
602 sizeof(struct cn_msg) + reply_size; in w1_cn_callback()
[all …]
/linux/samples/connector/
A Ducon.c46 static int netlink_send(int s, struct cn_msg *msg) in netlink_send()
52 struct cn_msg *m; in netlink_send()
54 size = NLMSG_SPACE(sizeof(struct cn_msg) + msg->len); in netlink_send()
104 struct cn_msg *data; in main()
168 data = (struct cn_msg *)buf; in main()
222 data = (struct cn_msg *)NLMSG_DATA(reply); in main()
A Dcn_test.c25 static void cn_test_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in cn_test_callback()
43 struct cn_msg *msg = NULL;
117 struct cn_msg *m; in cn_test_timer_func()
/linux/Documentation/w1/
A Dw1-netlink.rst21 [struct cn_msg] - connector header.
80 [cn_msg][w1_netlink_msg][w1_netlink_cmd]
81 cn_msg.len = sizeof(struct w1_netlink_msg) +
91 cn_msg (CN_W1_IDX.CN_W1_VAL as id, len is equal to sizeof(struct
104 [cn_msg]
111 [cn_msg, ack = 1 and increasing, 0 means the last message,
125 cn_msg->len = sizeof(struct w1_netlink_msg) +
131 [cn_msg]
145 of the w1_netlink_cmd structure and cn_msg.len will be equal to the sum
148 w1_netlink_cmd attached), reply will contain only cn_msg and w1_netlink_msg
/linux/Documentation/driver-api/
A Dconnector.rst28 …int cn_add_callback(const struct cb_id *id, char *name, void (*callback) (struct cn_msg *, struct …
29 void cn_netlink_send_mult(struct cn_msg *msg, u16 len, u32 portid, u32 __group, int gfp_mask);
30 void cn_netlink_send(struct cn_msg *msg, u32 portid, u32 __group, int gfp_mask);
42 be dereferenced to `struct cn_msg *`::
44 struct cn_msg
105 cn_msg [main connector's message header] contains u32 seq and u32 ack
/linux/include/uapi/linux/
A Dconnector.h70 struct cn_msg { struct
/linux/drivers/video/fbdev/
A Duvesafb.c72 static void uvesafb_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in uvesafb_cn_callback()
147 struct cn_msg *m; in uvesafb_exec()

Completed in 18 milliseconds