Lines Matching refs:msg
89 } msg; in test_immovable_receive_right() local
94 msg.header.msgh_remote_port = server_port; in test_immovable_receive_right()
95 msg.header.msgh_local_port = MACH_PORT_NULL; in test_immovable_receive_right()
96 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0) | MACH_MSGH_BITS_COMPLEX; in test_immovable_receive_right()
97 msg.header.msgh_size = sizeof msg; in test_immovable_receive_right()
99 msg.body.msgh_descriptor_count = 1; in test_immovable_receive_right()
101 msg.desc.name = reply_port; in test_immovable_receive_right()
102 msg.desc.disposition = MACH_MSG_TYPE_MOVE_RECEIVE; in test_immovable_receive_right()
103 msg.desc.type = MACH_MSG_PORT_DESCRIPTOR; in test_immovable_receive_right()
104 kr = mach_msg_send(&msg.header); in test_immovable_receive_right()
128 } msg; in test_using_send_right() local
130 msg.header.msgh_remote_port = reply_port; in test_using_send_right()
131 msg.header.msgh_local_port = MACH_PORT_NULL; in test_using_send_right()
132 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0); in test_using_send_right()
133 msg.header.msgh_size = sizeof msg; in test_using_send_right()
135 kr = mach_msg_send(&msg.header); in test_using_send_right()
149 } msg; in test_move_send_right() local
154 msg.header.msgh_remote_port = server_port; in test_move_send_right()
155 msg.header.msgh_local_port = MACH_PORT_NULL; in test_move_send_right()
156 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0) | MACH_MSGH_BITS_COMPLEX; in test_move_send_right()
157 msg.header.msgh_size = sizeof msg; in test_move_send_right()
159 msg.body.msgh_descriptor_count = 1; in test_move_send_right()
161 msg.desc.name = reply_port; in test_move_send_right()
162 msg.desc.disposition = MACH_MSG_TYPE_MOVE_SEND; in test_move_send_right()
163 msg.desc.type = MACH_MSG_PORT_DESCRIPTOR; in test_move_send_right()
165 kr = mach_msg_send(&msg.header); in test_move_send_right()
178 } msg; in test_move_provisional_reply_port() local
183 msg.header.msgh_remote_port = server_port; in test_move_provisional_reply_port()
184 msg.header.msgh_local_port = MACH_PORT_NULL; in test_move_provisional_reply_port()
185 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0) | MACH_MSGH_BITS_COMPLEX; in test_move_provisional_reply_port()
186 msg.header.msgh_size = sizeof msg; in test_move_provisional_reply_port()
188 msg.body.msgh_descriptor_count = 1; in test_move_provisional_reply_port()
190 msg.desc.name = reply_port; in test_move_provisional_reply_port()
191 msg.desc.disposition = MACH_MSG_TYPE_MOVE_RECEIVE; in test_move_provisional_reply_port()
192 msg.desc.type = MACH_MSG_PORT_DESCRIPTOR; in test_move_provisional_reply_port()
194 kr = mach_msg_send(&msg.header); in test_move_provisional_reply_port()