Lines Matching refs:msg
64 #define MACH_MSG_TRAP(msg, opt, ssize, rsize, rname, to, not) \
65 mach_msg_trap((msg), (opt), (ssize), (rsize), (rname), (to), (not))
78 mach_msg(msg, option, send_size, rcv_size, rcv_name, timeout, notify)
79 mach_msg_header_t *msg;
101 mr = MACH_MSG_TRAP(msg, option &~ LIBMACH_OPTIONS,
109 mr = MACH_MSG_TRAP(msg,
116 mr = MACH_MSG_TRAP(msg,
133 * no separate receive buffer is specified, the msg parameter
141 mach_msg_overwrite(msg, option, send_size, rcv_limit, rcv_name, timeout,
143 mach_msg_header_t *msg;
167 mr = mach_msg_overwrite_trap(msg, option &~ LIBMACH_OPTIONS,
175 mr = mach_msg_overwrite_trap(msg,
182 mr = mach_msg_overwrite_trap(msg,
192 mach_msg_send(mach_msg_header_t *msg)
194 return mach_msg(msg, MACH_SEND_MSG,
195 msg->msgh_size, 0, MACH_PORT_NULL,
200 mach_msg_receive(mach_msg_header_t *msg)
202 return mach_msg(msg, MACH_RCV_MSG,
203 0, msg->msgh_size, msg->msgh_local_port,
259 * Second, it can mimic the side-effects of a msg-send
266 mach_msg_destroy(mach_msg_header_t *msg)
268 mach_msg_bits_t mbits = msg->msgh_bits;
275 mach_msg_destroy_port(msg->msgh_remote_port, MACH_MSGH_BITS_REMOTE(mbits));
282 base = (mach_msg_base_t *) msg;