Lines Matching refs:reply
254 * Generates a reply message.
265 ipc_kmsg_t reply;
296 reply = ipc_kmsg_alloc(reply_size);
298 if (reply == IKM_NULL) {
305 * Initialize reply message.
309 #define OutP ((mig_reply_error_t *) reply->ikm_header)
314 * whole reply buffer.
338 (*ptr->routine)(request->ikm_header, reply->ikm_header);
342 if (!ipc_kobject_notify(request->ikm_header, reply->ikm_header)){
349 ((mig_reply_error_t *) reply->ikm_header)->RetCode
395 if (!(reply->ikm_header->msgh_bits & MACH_MSGH_BITS_COMPLEX) &&
396 ((mig_reply_error_t *) reply->ikm_header)->RetCode != KERN_SUCCESS)
397 kr = ((mig_reply_error_t *) reply->ikm_header)->RetCode;
404 * of the message. The reply port right is moved
405 * to the reply message, and we have deallocated
414 * Destroy everthing except the reply port right,
415 * which is needed in the reply message.
423 * The server function will send a reply message
424 * using the reply port right, which it has saved.
427 ipc_kmsg_free(reply);
430 } else if (!IP_VALID((ipc_port_t)reply->ikm_header->msgh_remote_port)) {
432 * Can't queue the reply message if the destination
433 * (the reply port) isn't valid.
436 ipc_kmsg_destroy(reply);
442 ((vm_offset_t)reply->ikm_header + (int)reply->ikm_header->msgh_size);
448 return reply;