Searched refs:cn_msg (Results 1 - 12 of 12) sorted by relevance
/linux-master/include/linux/ |
H A D | connector.h | 43 void (*callback) (struct cn_msg *, struct netlink_skb_parms *); 65 * parameters are %cn_msg and the sender's credentials 68 void (*callback)(struct cn_msg *, struct netlink_skb_parms *)); 101 int cn_netlink_send_mult(struct cn_msg *msg, u16 len, u32 portid, 127 int cn_netlink_send(struct cn_msg *msg, u32 portid, u32 group, gfp_t gfp_mask); 131 void (*callback)(struct cn_msg *, struct netlink_skb_parms *));
|
/linux-master/samples/connector/ |
H A D | ucon.c | 46 static int netlink_send(int s, struct cn_msg *msg) 52 struct cn_msg *m; 54 size = NLMSG_SPACE(sizeof(struct cn_msg) + msg->len); 104 struct cn_msg *data; 168 data = (struct cn_msg *)buf; 222 data = (struct cn_msg *)NLMSG_DATA(reply);
|
H A D | cn_test.c | 25 static void cn_test_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) 43 struct cn_msg *msg = NULL; 117 struct cn_msg *m;
|
/linux-master/drivers/hv/ |
H A D | hv_utils_transport.c | 184 static void hvt_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) 220 struct cn_msg *cn_msg; local 227 cn_msg = kzalloc(sizeof(*cn_msg) + len, GFP_ATOMIC); 228 if (!cn_msg) 230 cn_msg->id.idx = hvt->cn_id.idx; 231 cn_msg->id.val = hvt->cn_id.val; 232 cn_msg->len = len; 233 memcpy(cn_msg [all...] |
/linux-master/drivers/md/ |
H A D | dm-log-userspace-transfer.c | 33 static struct cn_msg *prealloced_cn_msg; 60 struct cn_msg *msg = prealloced_cn_msg; 62 memset(msg, 0, sizeof(struct cn_msg)); 83 static int fill_pkg(struct cn_msg *msg, struct dm_ulog_request *tfr) 133 static void cn_ulog_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) 177 int overhead_size = sizeof(struct dm_ulog_request) + sizeof(struct cn_msg); 182 * Given the space needed to hold the 'struct cn_msg' and 200 memset(tfr, 0, DM_ULOG_PREALLOCED_SIZE - sizeof(struct cn_msg)); 272 prealloced_ulog_tfr = prealloced + sizeof(struct cn_msg);
|
/linux-master/drivers/connector/ |
H A D | connector.c | 34 * Sends mult (multiple) cn_msg at a time. 55 * If msg->len != len, then additional cn_msg messages are expected following 61 int cn_netlink_send_mult(struct cn_msg *msg, u16 len, u32 portid, u32 __group, 69 struct cn_msg *data; 123 int cn_netlink_send(struct cn_msg *msg, u32 portid, u32 __group, 139 struct cn_msg *msg = nlmsg_data(nlmsg_hdr(skb)); 145 if (nlh->nlmsg_len < NLMSG_HDRLEN + sizeof(struct cn_msg) + msg->len) 207 if (len < (int)sizeof(struct cn_msg) || 225 void (*callback)(struct cn_msg *,
|
H A D | cn_proc.c | 24 * Size of a cn_msg followed by a proc_event structure. Since the 25 * sizeof struct cn_msg is a multiple of 4 bytes, but not 8 bytes, we 27 * cn_msg structure 4 bytes into the stack buffer. The result is that 30 #define CN_PROC_MSG_SIZE (sizeof(struct cn_msg) + sizeof(struct proc_event) + 4) 32 /* See comment above; we test our assumption about sizeof struct cn_msg here. */ 33 static inline struct cn_msg *buffer_to_cn_msg(__u8 *buffer) 35 BUILD_BUG_ON(sizeof(struct cn_msg) != 20); 36 return (struct cn_msg *)(buffer + 4); 88 static inline void send_msg(struct cn_msg *msg) 119 struct cn_msg *ms [all...] |
H A D | cn_queue.c | 23 void (*callback)(struct cn_msg *, 61 void (*callback)(struct cn_msg *,
|
/linux-master/include/uapi/linux/ |
H A D | connector.h | 70 struct cn_msg { struct
|
/linux-master/drivers/w1/ |
H A D | w1_netlink.c | 25 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; 33 * cn_msg, data (w1_netlink_msg and w1_netlink_cmd) 52 * cn_msg and data, excludes the first sizeof(struct cn_msg). Direclty 119 block->cn = (struct cn_msg *)(block->cn->data + 139 w1_reply_make_space(block, sizeof(struct cn_msg) + 144 * there won't be one. Allocate and copy over a new cn_msg [all...] |
/linux-master/tools/testing/selftests/connector/ |
H A D | proc_filter.c | 21 #define NL_MESSAGE_SIZE (sizeof(struct nlmsghdr) + sizeof(struct cn_msg) + \ 23 #define NL_MESSAGE_SIZE_NF (sizeof(struct nlmsghdr) + sizeof(struct cn_msg) + \ 44 struct cn_msg *msg; 56 msg = (struct cn_msg *)NLMSG_DATA(hdr); 145 ((struct cn_msg *)NLMSG_DATA(hdr))->data;
|
/linux-master/drivers/video/fbdev/ |
H A D | uvesafb.c | 72 static void uvesafb_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) 147 struct cn_msg *m;
|
Completed in 180 milliseconds