Lines Matching defs:msg
59 struct cn_msg *msg = prealloced_cn_msg;
61 memset(msg, 0, sizeof(struct cn_msg));
63 msg->id.idx = ulog_cn_id.idx;
64 msg->id.val = ulog_cn_id.val;
65 msg->ack = 0;
66 msg->seq = tfr->seq;
67 msg->len = sizeof(struct dm_ulog_request) + tfr->data_size;
69 r = cn_netlink_send(msg, 0, 0, gfp_any());
75 * Parameters for this function can be either msg or tfr, but not
77 * If just msg is given, then the reply is simply an ACK from userspace
82 static int fill_pkg(struct cn_msg *msg, struct dm_ulog_request *tfr)
84 uint32_t rtn_seq = (msg) ? msg->seq : (tfr) ? tfr->seq : 0;
101 if (msg) {
102 pkg->error = -msg->ack;
133 static void cn_ulog_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp)
135 struct dm_ulog_request *tfr = (struct dm_ulog_request *)(msg + 1);
141 if (msg->len == 0)
142 fill_pkg(msg, NULL);
143 else if (msg->len < sizeof(*tfr))
145 (unsigned)sizeof(*tfr), msg->len, msg->seq);