Lines Matching defs:reply
261 * Generates a reply message.
272 ipc_kmsg_t reply;
303 reply = ipc_kmsg_alloc(reply_size);
305 if (reply == IKM_NULL) {
312 * Initialize reply message.
316 #define OutP ((mig_reply_error_t *) reply->ikm_header)
321 * whole reply buffer.
350 (*ptr->routine)(request->ikm_header, reply->ikm_header);
355 if (!ipc_kobject_notify(request->ikm_header, reply->ikm_header)){
362 ((mig_reply_error_t *) reply->ikm_header)->RetCode
397 if (!(reply->ikm_header->msgh_bits & MACH_MSGH_BITS_COMPLEX) &&
398 ((mig_reply_error_t *) reply->ikm_header)->RetCode != KERN_SUCCESS)
399 kr = ((mig_reply_error_t *) reply->ikm_header)->RetCode;
406 * of the message. The reply port right is moved
407 * to the reply message, and we have deallocated
416 * Destroy everthing except the reply port right,
417 * which is needed in the reply message.
425 * The server function will send a reply message
426 * using the reply port right, which it has saved.
429 ipc_kmsg_free(reply);
432 } else if (!IP_VALID((ipc_port_t)reply->ikm_header->msgh_remote_port)) {
434 * Can't queue the reply message if the destination
435 * (the reply port) isn't valid.
438 ipc_kmsg_destroy(reply);
444 ((vm_offset_t)reply->ikm_header + (int)reply->ikm_header->msgh_size);
450 return reply;