Lines Matching refs:reply
263 * Generates a reply message.
274 ipc_kmsg_t reply;
305 reply = ipc_kmsg_alloc(reply_size);
307 if (reply == IKM_NULL) {
314 * Initialize reply message.
318 #define OutP ((mig_reply_error_t *) reply->ikm_header)
323 * whole reply buffer.
347 (*ptr->routine)(request->ikm_header, reply->ikm_header);
351 if (!ipc_kobject_notify(request->ikm_header, reply->ikm_header)){
358 ((mig_reply_error_t *) reply->ikm_header)->RetCode
393 if (!(reply->ikm_header->msgh_bits & MACH_MSGH_BITS_COMPLEX) &&
394 ((mig_reply_error_t *) reply->ikm_header)->RetCode != KERN_SUCCESS)
395 kr = ((mig_reply_error_t *) reply->ikm_header)->RetCode;
402 * of the message. The reply port right is moved
403 * to the reply message, and we have deallocated
412 * Destroy everthing except the reply port right,
413 * which is needed in the reply message.
421 * The server function will send a reply message
422 * using the reply port right, which it has saved.
425 ipc_kmsg_free(reply);
428 } else if (!IP_VALID((ipc_port_t)reply->ikm_header->msgh_remote_port)) {
430 * Can't queue the reply message if the destination
431 * (the reply port) isn't valid.
434 ipc_kmsg_destroy(reply);
440 ((vm_offset_t)reply->ikm_header + (int)reply->ikm_header->msgh_size);
446 return reply;