Lines Matching refs:message

84 mach_server_construct_header(ipc_message_t *message, mach_port_t replyPort)  in mach_server_construct_header()  argument
86 bzero(message, sizeof(*message)); in mach_server_construct_header()
87message->header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, MACH_MSG_TYPE_MAKE_SEND_ONCE) … in mach_server_construct_header()
88 message->header.msgh_remote_port = persistentReplyPort;//serverPort; in mach_server_construct_header()
89 message->header.msgh_local_port = replyPort; in mach_server_construct_header()
90 message->header.msgh_size = sizeof(*message); in mach_server_construct_header()
91 message->header.msgh_id = 1; in mach_server_construct_header()
95 mach_server_contruct_payload(ipc_message_t *message, in mach_server_contruct_payload() argument
104 message->address = src;//LD TODO: (src + 8193); in mach_server_contruct_payload()
106 message->body.msgh_descriptor_count = 1; in mach_server_contruct_payload()
107 message->port_descriptor.name = port; in mach_server_contruct_payload()
108 message->port_descriptor.disposition = MACH_MSG_TYPE_COPY_SEND; in mach_server_contruct_payload()
109 message->port_descriptor.type = MACH_MSG_PORT_DESCRIPTOR; in mach_server_contruct_payload()
112 message->pid = (uint64_t)getpid(); in mach_server_contruct_payload()
113 message->size = size; in mach_server_contruct_payload()
114 message->vm_op = vm_op; in mach_server_contruct_payload()
115 message->copy = copy; in mach_server_contruct_payload()
116 message->misoffset = misoffset; in mach_server_contruct_payload()
157 ipc_message_t *message = (ipc_message_t *)calloc(1, messageSize); in server_error_out() local
159 message->header.msgh_bits = MACH_MSGH_BITS_ZERO; in server_error_out()
160 message->header.msgh_size = messageSize; in server_error_out()
161 message->header.msgh_remote_port = MACH_PORT_NULL; in server_error_out()
162 message->header.msgh_local_port = port; in server_error_out()
164 mach_server_construct_header(message, port); in server_error_out()
165 message->vm_op = VM_OP_EXIT_ERROR; in server_error_out()
166 …ret = mach_msg(&message->header, MACH_SEND_MSG, message->header.msgh_size, 0, MACH_PORT_NULL, MACH… in server_error_out()