/linux-4.1.27/include/linux/ |
D | connector.h | 56 void (*callback) (struct cn_msg *, struct netlink_skb_parms *); 72 void (*callback)(struct cn_msg *, struct netlink_skb_parms *)); 74 int cn_netlink_send_mult(struct cn_msg *msg, u16 len, u32 portid, u32 group, gfp_t gfp_mask); 75 int cn_netlink_send(struct cn_msg *msg, u32 portid, u32 group, gfp_t gfp_mask); 79 void (*callback)(struct cn_msg *, struct netlink_skb_parms *));
|
/linux-4.1.27/drivers/md/ |
D | dm-log-userspace-transfer.c | 32 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-4.1.27/drivers/connector/ |
D | cn_proc.c | 44 #define CN_PROC_MSG_SIZE (sizeof(struct cn_msg) + sizeof(struct proc_event) + 4) 47 static inline struct cn_msg *buffer_to_cn_msg(__u8 *buffer) in buffer_to_cn_msg() 49 BUILD_BUG_ON(sizeof(struct cn_msg) != 20); in buffer_to_cn_msg() 50 return (struct cn_msg *)(buffer + 4); in buffer_to_cn_msg() 69 struct cn_msg *msg; in proc_fork_connector() 101 struct cn_msg *msg; in proc_exec_connector() 126 struct cn_msg *msg; in proc_id_connector() 165 struct cn_msg *msg; in proc_sid_connector() 190 struct cn_msg *msg; in proc_ptrace_connector() 223 struct cn_msg *msg; in proc_comm_connector() [all …]
|
D | connector.c | 73 int cn_netlink_send_mult(struct cn_msg *msg, u16 len, u32 portid, u32 __group, in cn_netlink_send_mult() 80 struct cn_msg *data; in cn_netlink_send_mult() 132 int cn_netlink_send(struct cn_msg *msg, u32 portid, u32 __group, in cn_netlink_send() 147 struct cn_msg *msg = nlmsg_data(nlmsg_hdr(skb)); in cn_call_callback() 153 if (nlh->nlmsg_len < NLMSG_HDRLEN + sizeof(struct cn_msg) + msg->len) in cn_call_callback() 190 if (len < (int)sizeof(struct cn_msg) || in cn_rx_skb() 208 void (*callback)(struct cn_msg *, in cn_add_callback() argument
|
D | cn_queue.c | 37 void (*callback)(struct cn_msg *, in cn_queue_alloc_callback_entry() argument 75 void (*callback)(struct cn_msg *, in cn_queue_add_callback() argument
|
/linux-4.1.27/Documentation/connector/ |
D | ucon.c | 60 static int netlink_send(int s, struct cn_msg *msg) in netlink_send() 66 struct cn_msg *m; in netlink_send() 68 size = NLMSG_SPACE(sizeof(struct cn_msg) + msg->len); in netlink_send() 118 struct cn_msg *data; in main() 182 data = (struct cn_msg *)buf; in main() 236 data = (struct cn_msg *)NLMSG_DATA(reply); in main()
|
D | connector.txt | 26 int cn_add_callback(struct cb_id *id, char *name, void (*callback) (struct cn_msg *, struct netlink… 27 void cn_netlink_send_multi(struct cn_msg *msg, u16 len, u32 portid, u32 __group, int gfp_mask); 28 void cn_netlink_send(struct cn_msg *msg, u32 portid, u32 __group, int gfp_mask); 40 be dereferenced to struct cn_msg *. 42 struct cn_msg 57 int cn_add_callback(struct cb_id *id, char *name, void (*callback) (struct cn_msg *, struct netlink… 65 cn_msg and the sender's credentials 75 int cn_netlink_send_multi(struct cn_msg *msg, u16 len, u32 portid, u32 __groups, int gfp_mask); 76 int cn_netlink_send(struct cn_msg *msg, u32 portid, u32 __groups, int gfp_mask); 82 struct cn_msg * - message header(with attached data). [all …]
|
D | cn_test.c | 38 static void cn_test_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in cn_test_callback() 56 struct cn_msg *msg = NULL; 130 struct cn_msg *m; in cn_test_timer_func()
|
/linux-4.1.27/drivers/w1/ |
D | w1_netlink.c | 44 struct cn_msg *first_cn; /* fixed once the structure is populated */ 45 struct cn_msg *cn; /* advances as cn_msg is appeneded */ 50 struct cn_msg request_cn; 136 block->cn = (struct cn_msg *)(block->cn->data + in w1_netlink_setup_msg() 156 w1_reply_make_space(block, sizeof(struct cn_msg) + in w1_netlink_queue_cmd() 183 u16 space = sizeof(struct cn_msg) + sizeof(*req_msg) + sizeof(*req_cmd); in w1_netlink_queue_status() 211 static void w1_netlink_send_error(struct cn_msg *cn, struct w1_netlink_msg *msg, in w1_netlink_send_error() 215 struct cn_msg cn; in w1_netlink_send_error() 236 struct cn_msg cn; in w1_netlink_send() 416 static int w1_process_command_root(struct cn_msg *req_cn, u32 portid) in w1_process_command_root() [all …]
|
/linux-4.1.27/tools/hv/ |
D | hv_vss_daemon.c | 146 static int netlink_send(int fd, struct cn_msg *msg) in netlink_send() 153 size = sizeof(struct cn_msg) + msg->len; in netlink_send() 185 struct cn_msg *message; in main() 188 struct cn_msg *incoming_cn_msg; in main() 220 vss_recv_buffer_len = NLMSG_LENGTH(0) + sizeof(struct cn_msg) + sizeof(struct hv_vss_msg); in main() 254 message = (struct cn_msg *)vss_recv_buffer; in main() 310 incoming_cn_msg = (struct cn_msg *)NLMSG_DATA(incoming_msg); in main()
|
D | hv_kvp_daemon.c | 1391 netlink_send(int fd, struct cn_msg *msg) in netlink_send() 1398 size = sizeof(struct cn_msg) + msg->len; in netlink_send() 1430 struct cn_msg *message; in main() 1433 struct cn_msg *incoming_cn_msg; in main() 1471 kvp_recv_buffer_len = NLMSG_LENGTH(0) + sizeof(struct cn_msg) + sizeof(struct hv_kvp_msg); in main() 1521 message = (struct cn_msg *)kvp_recv_buffer; in main() 1583 incoming_cn_msg = (struct cn_msg *)NLMSG_DATA(incoming_msg); in main()
|
/linux-4.1.27/Documentation/w1/ |
D | w1.netlink | 17 [struct cn_msg] - connector header. 76 [cn_msg][w1_netlink_msg][w1_netlink_cmd] 77 cn_msg.len = sizeof(struct w1_netlink_msg) + 87 cn_msg (CN_W1_IDX.CN_W1_VAL as id, len is equal to sizeof(struct 98 [cn_msg] 104 [cn_msg, ack = 1 and increasing, 0 means the last message, 114 cn_msg->len = sizeof(struct w1_netlink_msg) + 119 [cn_msg] 133 of the w1_netlink_cmd structure and cn_msg.len will be equal to the sum 136 w1_netlink_cmd attached), reply will contain only cn_msg and w1_netlink_msg
|
/linux-4.1.27/include/uapi/linux/ |
D | connector.h | 69 struct cn_msg { struct
|
/linux-4.1.27/drivers/hv/ |
D | hv_snapshot.c | 77 vss_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in vss_cn_callback() 100 struct cn_msg *msg; in vss_send_op()
|
D | hv_kvp.c | 101 struct cn_msg *msg; in kvp_register() 180 kvp_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in kvp_cn_callback() 346 struct cn_msg *msg; in kvp_send_key()
|
/linux-4.1.27/drivers/video/fbdev/ |
D | uvesafb.c | 68 static void uvesafb_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in uvesafb_cn_callback() 143 struct cn_msg *m; in uvesafb_exec()
|