Lines Matching refs:msg
88 static inline void send_msg(struct cn_msg *msg) in send_msg() argument
94 msg->seq = __this_cpu_inc_return(local_event.count) - 1; in send_msg()
95 ((struct proc_event *)msg->data)->cpu = smp_processor_id(); in send_msg()
103 filter_data[0] = ((struct proc_event *)msg->data)->what; in send_msg()
106 ((struct proc_event *)msg->data)->event_data.exit.exit_code; in send_msg()
111 cn_netlink_send_mult(msg, msg->len, 0, CN_IDX_PROC, GFP_NOWAIT, in send_msg()
119 struct cn_msg *msg; in proc_fork_connector() local
127 msg = buffer_to_cn_msg(buffer); in proc_fork_connector()
128 ev = (struct proc_event *)msg->data; in proc_fork_connector()
140 memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); in proc_fork_connector()
141 msg->ack = 0; /* not used */ in proc_fork_connector()
142 msg->len = sizeof(*ev); in proc_fork_connector()
143 msg->flags = 0; /* not used */ in proc_fork_connector()
144 send_msg(msg); in proc_fork_connector()
149 struct cn_msg *msg; in proc_exec_connector() local
156 msg = buffer_to_cn_msg(buffer); in proc_exec_connector()
157 ev = (struct proc_event *)msg->data; in proc_exec_connector()
164 memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); in proc_exec_connector()
165 msg->ack = 0; /* not used */ in proc_exec_connector()
166 msg->len = sizeof(*ev); in proc_exec_connector()
167 msg->flags = 0; /* not used */ in proc_exec_connector()
168 send_msg(msg); in proc_exec_connector()
173 struct cn_msg *msg; in proc_id_connector() local
181 msg = buffer_to_cn_msg(buffer); in proc_id_connector()
182 ev = (struct proc_event *)msg->data; in proc_id_connector()
202 memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); in proc_id_connector()
203 msg->ack = 0; /* not used */ in proc_id_connector()
204 msg->len = sizeof(*ev); in proc_id_connector()
205 msg->flags = 0; /* not used */ in proc_id_connector()
206 send_msg(msg); in proc_id_connector()
211 struct cn_msg *msg; in proc_sid_connector() local
218 msg = buffer_to_cn_msg(buffer); in proc_sid_connector()
219 ev = (struct proc_event *)msg->data; in proc_sid_connector()
226 memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); in proc_sid_connector()
227 msg->ack = 0; /* not used */ in proc_sid_connector()
228 msg->len = sizeof(*ev); in proc_sid_connector()
229 msg->flags = 0; /* not used */ in proc_sid_connector()
230 send_msg(msg); in proc_sid_connector()
235 struct cn_msg *msg; in proc_ptrace_connector() local
242 msg = buffer_to_cn_msg(buffer); in proc_ptrace_connector()
243 ev = (struct proc_event *)msg->data; in proc_ptrace_connector()
258 memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); in proc_ptrace_connector()
259 msg->ack = 0; /* not used */ in proc_ptrace_connector()
260 msg->len = sizeof(*ev); in proc_ptrace_connector()
261 msg->flags = 0; /* not used */ in proc_ptrace_connector()
262 send_msg(msg); in proc_ptrace_connector()
267 struct cn_msg *msg; in proc_comm_connector() local
274 msg = buffer_to_cn_msg(buffer); in proc_comm_connector()
275 ev = (struct proc_event *)msg->data; in proc_comm_connector()
283 memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); in proc_comm_connector()
284 msg->ack = 0; /* not used */ in proc_comm_connector()
285 msg->len = sizeof(*ev); in proc_comm_connector()
286 msg->flags = 0; /* not used */ in proc_comm_connector()
287 send_msg(msg); in proc_comm_connector()
292 struct cn_msg *msg; in proc_coredump_connector() local
300 msg = buffer_to_cn_msg(buffer); in proc_coredump_connector()
301 ev = (struct proc_event *)msg->data; in proc_coredump_connector()
316 memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); in proc_coredump_connector()
317 msg->ack = 0; /* not used */ in proc_coredump_connector()
318 msg->len = sizeof(*ev); in proc_coredump_connector()
319 msg->flags = 0; /* not used */ in proc_coredump_connector()
320 send_msg(msg); in proc_coredump_connector()
325 struct cn_msg *msg; in proc_exit_connector() local
333 msg = buffer_to_cn_msg(buffer); in proc_exit_connector()
334 ev = (struct proc_event *)msg->data; in proc_exit_connector()
351 memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); in proc_exit_connector()
352 msg->ack = 0; /* not used */ in proc_exit_connector()
353 msg->len = sizeof(*ev); in proc_exit_connector()
354 msg->flags = 0; /* not used */ in proc_exit_connector()
355 send_msg(msg); in proc_exit_connector()
368 struct cn_msg *msg; in cn_proc_ack() local
375 msg = buffer_to_cn_msg(buffer); in cn_proc_ack()
376 ev = (struct proc_event *)msg->data; in cn_proc_ack()
378 msg->seq = rcvd_seq; in cn_proc_ack()
383 memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); in cn_proc_ack()
384 msg->ack = rcvd_ack + 1; in cn_proc_ack()
385 msg->len = sizeof(*ev); in cn_proc_ack()
386 msg->flags = 0; /* not used */ in cn_proc_ack()
387 send_msg(msg); in cn_proc_ack()
395 static void cn_proc_mcast_ctl(struct cn_msg *msg, in cn_proc_mcast_ctl() argument
413 if (msg->len == sizeof(*pinput)) { in cn_proc_mcast_ctl()
414 pinput = (struct proc_input *)msg->data; in cn_proc_mcast_ctl()
417 } else if (msg->len == sizeof(mc_op)) { in cn_proc_mcast_ctl()
418 mc_op = *((enum proc_cn_mcast_op *)msg->data); in cn_proc_mcast_ctl()
465 cn_proc_ack(err, msg->seq, msg->ack); in cn_proc_mcast_ctl()