• Home
  • Raw
  • Download

Lines Matching refs:msg

51 static inline void send_msg(struct cn_msg *msg)  in send_msg()  argument
55 msg->seq = __this_cpu_inc_return(local_event.count) - 1; in send_msg()
56 ((struct proc_event *)msg->data)->cpu = smp_processor_id(); in send_msg()
64 cn_netlink_send(msg, 0, CN_IDX_PROC, GFP_NOWAIT); in send_msg()
71 struct cn_msg *msg; in proc_fork_connector() local
79 msg = buffer_to_cn_msg(buffer); in proc_fork_connector()
80 ev = (struct proc_event *)msg->data; in proc_fork_connector()
92 memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); in proc_fork_connector()
93 msg->ack = 0; /* not used */ in proc_fork_connector()
94 msg->len = sizeof(*ev); in proc_fork_connector()
95 msg->flags = 0; /* not used */ in proc_fork_connector()
96 send_msg(msg); in proc_fork_connector()
101 struct cn_msg *msg; in proc_exec_connector() local
108 msg = buffer_to_cn_msg(buffer); in proc_exec_connector()
109 ev = (struct proc_event *)msg->data; in proc_exec_connector()
116 memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); in proc_exec_connector()
117 msg->ack = 0; /* not used */ in proc_exec_connector()
118 msg->len = sizeof(*ev); in proc_exec_connector()
119 msg->flags = 0; /* not used */ in proc_exec_connector()
120 send_msg(msg); in proc_exec_connector()
125 struct cn_msg *msg; in proc_id_connector() local
133 msg = buffer_to_cn_msg(buffer); in proc_id_connector()
134 ev = (struct proc_event *)msg->data; in proc_id_connector()
154 memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); in proc_id_connector()
155 msg->ack = 0; /* not used */ in proc_id_connector()
156 msg->len = sizeof(*ev); in proc_id_connector()
157 msg->flags = 0; /* not used */ in proc_id_connector()
158 send_msg(msg); in proc_id_connector()
163 struct cn_msg *msg; in proc_sid_connector() local
170 msg = buffer_to_cn_msg(buffer); in proc_sid_connector()
171 ev = (struct proc_event *)msg->data; in proc_sid_connector()
178 memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); in proc_sid_connector()
179 msg->ack = 0; /* not used */ in proc_sid_connector()
180 msg->len = sizeof(*ev); in proc_sid_connector()
181 msg->flags = 0; /* not used */ in proc_sid_connector()
182 send_msg(msg); in proc_sid_connector()
187 struct cn_msg *msg; in proc_ptrace_connector() local
194 msg = buffer_to_cn_msg(buffer); in proc_ptrace_connector()
195 ev = (struct proc_event *)msg->data; in proc_ptrace_connector()
210 memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); in proc_ptrace_connector()
211 msg->ack = 0; /* not used */ in proc_ptrace_connector()
212 msg->len = sizeof(*ev); in proc_ptrace_connector()
213 msg->flags = 0; /* not used */ in proc_ptrace_connector()
214 send_msg(msg); in proc_ptrace_connector()
219 struct cn_msg *msg; in proc_comm_connector() local
226 msg = buffer_to_cn_msg(buffer); in proc_comm_connector()
227 ev = (struct proc_event *)msg->data; in proc_comm_connector()
235 memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); in proc_comm_connector()
236 msg->ack = 0; /* not used */ in proc_comm_connector()
237 msg->len = sizeof(*ev); in proc_comm_connector()
238 msg->flags = 0; /* not used */ in proc_comm_connector()
239 send_msg(msg); in proc_comm_connector()
244 struct cn_msg *msg; in proc_coredump_connector() local
252 msg = buffer_to_cn_msg(buffer); in proc_coredump_connector()
253 ev = (struct proc_event *)msg->data; in proc_coredump_connector()
268 memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); in proc_coredump_connector()
269 msg->ack = 0; /* not used */ in proc_coredump_connector()
270 msg->len = sizeof(*ev); in proc_coredump_connector()
271 msg->flags = 0; /* not used */ in proc_coredump_connector()
272 send_msg(msg); in proc_coredump_connector()
277 struct cn_msg *msg; in proc_exit_connector() local
285 msg = buffer_to_cn_msg(buffer); in proc_exit_connector()
286 ev = (struct proc_event *)msg->data; in proc_exit_connector()
303 memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); in proc_exit_connector()
304 msg->ack = 0; /* not used */ in proc_exit_connector()
305 msg->len = sizeof(*ev); in proc_exit_connector()
306 msg->flags = 0; /* not used */ in proc_exit_connector()
307 send_msg(msg); in proc_exit_connector()
320 struct cn_msg *msg; in cn_proc_ack() local
327 msg = buffer_to_cn_msg(buffer); in cn_proc_ack()
328 ev = (struct proc_event *)msg->data; in cn_proc_ack()
330 msg->seq = rcvd_seq; in cn_proc_ack()
335 memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); in cn_proc_ack()
336 msg->ack = rcvd_ack + 1; in cn_proc_ack()
337 msg->len = sizeof(*ev); in cn_proc_ack()
338 msg->flags = 0; /* not used */ in cn_proc_ack()
339 send_msg(msg); in cn_proc_ack()
346 static void cn_proc_mcast_ctl(struct cn_msg *msg, in cn_proc_mcast_ctl() argument
352 if (msg->len != sizeof(*mc_op)) in cn_proc_mcast_ctl()
370 mc_op = (enum proc_cn_mcast_op *)msg->data; in cn_proc_mcast_ctl()
384 cn_proc_ack(err, msg->seq, msg->ack); in cn_proc_mcast_ctl()