/linux-4.4.14/include/linux/ |
H A 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.4.14/drivers/connector/ |
H A D | cn_proc.c | 38 * Size of a cn_msg followed by a proc_event structure. Since the 39 * sizeof struct cn_msg is a multiple of 4 bytes, but not 8 bytes, we 41 * cn_msg structure 4 bytes into the stack buffer. The result is that 44 #define CN_PROC_MSG_SIZE (sizeof(struct cn_msg) + sizeof(struct proc_event) + 4) 46 /* See comment above; we test our assumption about sizeof struct cn_msg here. */ buffer_to_cn_msg() 47 static inline struct cn_msg *buffer_to_cn_msg(__u8 *buffer) buffer_to_cn_msg() 49 BUILD_BUG_ON(sizeof(struct cn_msg) != 20); buffer_to_cn_msg() 50 return (struct cn_msg *)(buffer + 4); buffer_to_cn_msg() 69 struct cn_msg *msg; proc_fork_connector() 101 struct cn_msg *msg; proc_exec_connector() 126 struct cn_msg *msg; proc_id_connector() 165 struct cn_msg *msg; proc_sid_connector() 190 struct cn_msg *msg; proc_ptrace_connector() 223 struct cn_msg *msg; proc_comm_connector() 249 struct cn_msg *msg; proc_coredump_connector() 274 struct cn_msg *msg; proc_exit_connector() 309 struct cn_msg *msg; cn_proc_ack() 335 static void cn_proc_mcast_ctl(struct cn_msg *msg, cn_proc_mcast_ctl()
|
H A D | connector.c | 46 * Sends mult (multiple) cn_msg at a time. 67 * If msg->len != len, then additional cn_msg messages are expected following 73 int cn_netlink_send_mult(struct cn_msg *msg, u16 len, u32 portid, u32 __group, cn_netlink_send_mult() 80 struct cn_msg *data; cn_netlink_send_mult() 133 int cn_netlink_send(struct cn_msg *msg, u32 portid, u32 __group, cn_netlink_send() 148 struct cn_msg *msg = nlmsg_data(nlmsg_hdr(skb)); cn_call_callback() 154 if (nlh->nlmsg_len < NLMSG_HDRLEN + sizeof(struct cn_msg) + msg->len) cn_call_callback() 191 if (len < (int)sizeof(struct cn_msg) || cn_rx_skb() 209 void (*callback)(struct cn_msg *, cn_add_callback()
|
H A D | cn_queue.c | 37 void (*callback)(struct cn_msg *, cn_queue_alloc_callback_entry() 75 void (*callback)(struct cn_msg *, cn_queue_add_callback()
|
/linux-4.4.14/drivers/hv/ |
H A D | hv_utils_transport.c | 149 static void hvt_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) hvt_cn_callback() 182 struct cn_msg *cn_msg; hvutil_transport_send() local 188 cn_msg = kzalloc(sizeof(*cn_msg) + len, GFP_ATOMIC); hvutil_transport_send() 189 if (!cn_msg) hvutil_transport_send() 191 cn_msg->id.idx = hvt->cn_id.idx; hvutil_transport_send() 192 cn_msg->id.val = hvt->cn_id.val; hvutil_transport_send() 193 cn_msg->len = len; hvutil_transport_send() 194 memcpy(cn_msg->data, msg, len); hvutil_transport_send() 195 ret = cn_netlink_send(cn_msg, 0, 0, GFP_ATOMIC); hvutil_transport_send() 196 kfree(cn_msg); hvutil_transport_send()
|
/linux-4.4.14/drivers/w1/ |
H A 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; 52 * cn_msg, data (w1_netlink_msg and w1_netlink_cmd) 71 * cn_msg and data, excludes the first sizeof(struct cn_msg). Direclty 136 block->cn = (struct cn_msg *)(block->cn->data + w1_netlink_setup_msg() 156 w1_reply_make_space(block, sizeof(struct cn_msg) + w1_netlink_queue_cmd() 161 * there won't be one. Allocate and copy over a new cn_msg. w1_netlink_queue_cmd() 183 u16 space = sizeof(struct cn_msg) + sizeof(*req_msg) + sizeof(*req_cmd); w1_netlink_queue_status() 203 * @cn: original cn_msg 211 static void w1_netlink_send_error(struct cn_msg *cn, struct w1_netlink_msg *msg, w1_netlink_send_error() 215 struct cn_msg cn; w1_netlink_send_error() 236 struct cn_msg cn; w1_netlink_send() 416 static int w1_process_command_root(struct cn_msg *req_cn, u32 portid) w1_process_command_root() 419 struct cn_msg *cn; w1_process_command_root() 442 if (cn->len + sizeof(*id) > PAGE_SIZE - sizeof(struct cn_msg)) { w1_process_command_root() 554 static void w1_cn_callback(struct cn_msg *cn, struct netlink_skb_parms *nsp) w1_cn_callback() 604 reply_size += 2 * cmd_count * (sizeof(struct cn_msg) + w1_cn_callback() 621 sizeof(struct cn_msg) + reply_size; w1_cn_callback() 637 * required for the reply, cn_msg isn't part of maxlen so w1_cn_callback() 638 * it should be reply_size - sizeof(struct cn_msg), however w1_cn_callback() 640 * is called with the full message size including cn_msg, w1_cn_callback() 641 * because it isn't known at that time if an additional cn_msg w1_cn_callback() 642 * will need to be allocated. So an extra cn_msg is added w1_cn_callback() 646 block->first_cn = (struct cn_msg *)(node + node_count); w1_cn_callback()
|
H A D | w1_netlink.h | 31 * enum w1_cn_msg_flags - bitfield flags for struct cn_msg.flags 34 * to handle multiple struct cn_msg, struct w1_netlink_msg, and 73 * The netlink connector data sequence is, struct nlmsghdr, struct cn_msg,
|
/linux-4.4.14/Documentation/connector/ |
H A D | ucon.c | 60 static int netlink_send(int s, struct cn_msg *msg) netlink_send() 66 struct cn_msg *m; netlink_send() 68 size = NLMSG_SPACE(sizeof(struct cn_msg) + msg->len); netlink_send() 118 struct cn_msg *data; main() 182 data = (struct cn_msg *)buf; main() 236 data = (struct cn_msg *)NLMSG_DATA(reply); main()
|
H A D | cn_test.c | 38 static void cn_test_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) cn_test_callback() 56 struct cn_msg *msg = NULL; 130 struct cn_msg *m; cn_test_timer_func()
|
/linux-4.4.14/drivers/md/ |
H A D | dm-log-userspace-transfer.c | 32 static struct cn_msg *prealloced_cn_msg; 59 struct cn_msg *msg = prealloced_cn_msg; dm_ulog_sendto_server() 61 memset(msg, 0, sizeof(struct cn_msg)); dm_ulog_sendto_server() 82 static int fill_pkg(struct cn_msg *msg, struct dm_ulog_request *tfr) fill_pkg() 133 static void cn_ulog_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) cn_ulog_callback() 177 int overhead_size = sizeof(struct dm_ulog_request) + sizeof(struct cn_msg); dm_consult_userspace() 182 * Given the space needed to hold the 'struct cn_msg' and dm_consult_userspace() 200 memset(tfr, 0, DM_ULOG_PREALLOCED_SIZE - sizeof(struct cn_msg)); dm_consult_userspace() 272 prealloced_ulog_tfr = prealloced + sizeof(struct cn_msg); dm_ulog_tfr_init()
|
/linux-4.4.14/include/uapi/linux/ |
H A D | connector.h | 69 struct cn_msg { struct
|
H A D | hyperv.h | 224 * sequence field in the cn_msg header to define our KVP message types.
|
/linux-4.4.14/drivers/video/fbdev/ |
H A D | uvesafb.c | 68 static void uvesafb_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) uvesafb_cn_callback() 143 struct cn_msg *m; uvesafb_exec()
|
/linux-4.4.14/tools/hv/ |
H A D | hv_kvp_daemon.c | 52 * sequence field in the cn_msg header to define our KVP message types.
|