Lines Matching defs:kmsg

140 	ipc_kmsg_t		kmsg,
187 ipc_kmsg_t kmsg;
200 kmsg = ipc_kmsg_alloc(msg_and_trailer_size);
202 if (kmsg == IKM_NULL)
205 (void) memcpy((void *) kmsg->ikm_header, (const void *) msg, send_size);
207 kmsg->ikm_header->msgh_size = send_size;
215 trailer = (mach_msg_max_trailer_t *) ((vm_offset_t)kmsg->ikm_header + send_size);
221 mr = ipc_kmsg_copyin(kmsg, space, map, option & MACH_SEND_NOTIFY);
223 ipc_kmsg_free(kmsg);
227 mr = ipc_kmsg_send(kmsg, option & MACH_SEND_TIMEOUT, send_timeout);
229 mr |= ipc_kmsg_copyout_pseudo(kmsg, space, map, MACH_MSG_BODY_NULL);
230 (void) memcpy((void *) msg, (const void *) kmsg->ikm_header,
231 kmsg->ikm_header->msgh_size);
232 ipc_kmsg_free(kmsg);
270 ipc_kmsg_t kmsg = self->ith_kmsg;
293 if (msg_receive_error(kmsg, msg_addr, option, seqno, space)
300 trailer_size = ipc_kmsg_add_trailer(kmsg, space, option, self, seqno, FALSE,
301 kmsg->ikm_header->msgh_remote_port->ip_context);
312 slist = ipc_kmsg_get_scatter(msg_addr, slist_size, kmsg);
313 mr = ipc_kmsg_copyout(kmsg, space, map, slist);
316 mr = ipc_kmsg_copyout(kmsg, space, map, MACH_MSG_BODY_NULL);
321 if (ipc_kmsg_put(msg_addr, kmsg, kmsg->ikm_header->msgh_size +
326 if (msg_receive_error(kmsg, msg_addr, option, seqno, space)
333 kmsg,
334 kmsg->ikm_header->msgh_size +
414 ipc_kmsg_t kmsg;
416 mr = ipc_kmsg_get(msg_addr, send_size, &kmsg);
421 mr = ipc_kmsg_copyin(kmsg, space, map, option & MACH_SEND_NOTIFY);
423 ipc_kmsg_free(kmsg);
427 mr = ipc_kmsg_send(kmsg, option & MACH_SEND_TIMEOUT, msg_timeout);
430 mr |= ipc_kmsg_copyout_pseudo(kmsg, space, map, MACH_MSG_BODY_NULL);
431 (void) ipc_kmsg_put(msg_addr, kmsg, kmsg->ikm_header->msgh_size);
513 ipc_kmsg_t kmsg,
523 context = kmsg->ikm_header->msgh_remote_port->ip_context;
529 ipc_kmsg_copyout_dest(kmsg, space);
535 ((vm_offset_t)kmsg->ikm_header +
537 kmsg->ikm_header->msgh_size = sizeof(mach_msg_header_t);
542 trailer_size = ipc_kmsg_add_trailer(kmsg, space,
549 if (ipc_kmsg_put(msg_addr, kmsg, kmsg->ikm_header->msgh_size +