Lines Matching defs:event_msg
2133 errno_t kev_msg_post(struct kev_msg *event_msg)
2139 if (event_msg == NULL)
2143 if (event_msg->vendor_code < min_vendor ||
2144 event_msg->vendor_code > max_vendor)
2149 return kev_post_msg(event_msg);
2153 int kev_post_msg(struct kev_msg *event_msg)
2166 if (event_msg->dv[i].data_length == 0)
2168 total_size += event_msg->dv[i].data_length;
2184 if (event_msg->dv[i].data_length == 0)
2187 total_size += event_msg->dv[i].data_length;
2188 bcopy(event_msg->dv[i].data_ptr, tmp,
2189 event_msg->dv[i].data_length);
2190 tmp += event_msg->dv[i].data_length;
2195 ev->vendor_code = event_msg->vendor_code;
2196 ev->kev_class = event_msg->kev_class;
2197 ev->kev_subclass = event_msg->kev_subclass;
2198 ev->event_code = event_msg->event_code;