| /xnu-11215/tests/ |
| H A D | mach_exception_reply.c | 121 reply->hdr.msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_MOVE_SEND_ONCE, 0, 0, 0); in handle_exceptions() 139 …reply->hdr.msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_MOVE_SEND_ONCE, MACH_MSG_TYPE_COPY_SEND, 0… in handle_exceptions() 157 …reply->hdr.msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_MOVE_SEND_ONCE, MACH_MSG_TYPE_MOVE_SEND, 0… in handle_exceptions() 174 …reply->hdr.msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_MOVE_SEND_ONCE, MACH_MSG_TYPE_COPY_SEND, 0… in handle_exceptions() 192 …reply->hdr.msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_MOVE_SEND_ONCE, MACH_MSG_TYPE_MOVE_SEND, 0… in handle_exceptions() 211 …reply->hdr.msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_MOVE_SEND_ONCE, 0, 0, MACH_MSGH_BITS_COMPL… in handle_exceptions() 233 …reply->hdr.msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_MOVE_SEND_ONCE, 0, 0, MACH_MSGH_BITS_COMPL… in handle_exceptions() 264 reply->hdr.msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_MOVE_SEND_ONCE, in handle_exceptions() 290 reply->hdr.msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_MOVE_SEND_ONCE, in handle_exceptions()
|
| H A D | imm_pinned_control_port_crasher.c | 50 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0) | MACH_MSGH_BITS_COMPLEX; in attempt_send_immovable_port() 156 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_MOVE_SEND, 0); in pinned_test_move_send_as_remote_port() 175 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_MOVE_SEND, MACH_MSG_TYPE_MOVE_SEND); in immovable_test_move_send_as_remote_port() 316 header.msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_COPY_SEND, 0, 0, 0); in cfi_test_no_bit_set() 336 header.msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_COPY_SEND, 0, 0, 0); in cfi_test_two_bits_set() 372 msg.header.msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_MAKE_SEND, 0, 0, 0); in cfi_test_msg_to_timer_port() 401 header.msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_COPY_SEND, 0, 0, 0); in cfi_test_wrong_bit_set()
|
| H A D | bootstrap_msgfilter.c | 62 .msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0), 81 .msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0),
|
| H A D | reply_port_defense_client.c | 96 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0) | MACH_MSGH_BITS_COMPLEX; in test_immovable_receive_right() 132 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0); in test_using_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() 185 msg.header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0) | MACH_MSGH_BITS_COMPLEX; in test_move_provisional_reply_port()
|
| H A D | voucher_entry_18826844.c | 63 .msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_MOVE_SEND, 92 .msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_MOVE_SEND,
|
| H A D | test_knote_use_after_free.c | 83 .msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_MAKE_SEND, 0, 0, MACH_MSGH_BITS_COMPLEX), in th_allocate_knotes() 121 T_QUIET; T_ASSERT_BITS_SET(reply->header.msgh_bits, MACH_MSGH_BITS_COMPLEX, "message is complex"); in th_allocate_knotes() 215 .msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_MAKE_SEND, 0, 0, MACH_MSGH_BITS_COMPLEX),
|
| H A D | ipc_mach_port.c | 89 .msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_COPY_SEND, in send_port() 127 T_QUIET; T_ASSERT_NE(msg.header.msgh_bits & MACH_MSGH_BITS_COMPLEX, 0, in receive_port()
|
| H A D | host_notifications.c | 25 .msgh_bits = 0,
|
| H A D | kqueue_nesting.c | 72 .msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_MAKE_SEND_ONCE, 0, 0, 0),
|
| /xnu-11215/tests/vm_memory_tests_src/ |
| H A D | server.c | 31 message->header.msgh_bits = MACH_MSGH_BITS_ZERO; in main() 38 if (MACH_MSGH_BITS_REMOTE(message->header.msgh_bits) == MACH_MSG_TYPE_PORT_SEND) { in main() 51 message->header.msgh_bits = MACH_MSGH_BITS_ZERO; in main()
|
| H A D | common.c | 87 …message->header.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, MACH_MSG_TYPE_MAKE_SEND_ONCE) … in mach_server_construct_header() 159 message->header.msgh_bits = MACH_MSGH_BITS_ZERO; in server_error_out()
|
| /xnu-11215/libsyscall/mach/ |
| H A D | mig_reply_setup.c | 74 OutP->Head.msgh_bits = in mig_reply_setup() 75 MACH_MSGH_BITS(MACH_MSGH_BITS_LOCAL(InP->msgh_bits), 0); in mig_reply_setup()
|
| H A D | mach_msg.c | 394 mach_msg_bits_t mbits = msg->msgh_bits; in mach_msg_destroy() 525 if (reply->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX) { in mach_msg_server_mig_return_code() 537 switch (MACH_MSGH_BITS_LOCAL(hdr->msgh_bits)) { in mach_msg_server_consume_unsent_message() 660 (MACH_MSGH_BITS_REMOTE(bufReply->Head.msgh_bits) == in mach_msg_server_once() 788 (MACH_MSGH_BITS_REMOTE(bufReply->Head.msgh_bits) == in mach_msg_server() 803 (MACH_MSGH_BITS_REMOTE(bufReply->Head.msgh_bits) == in mach_msg_server()
|
| /xnu-11215/osfmk/ipc/ |
| H A D | ipc_kmsg.c | 2977 .msgh_bits = uhdr->msgh_bits & MACH_MSGH_BITS_USER, in ipc_kmsg_get_and_inflate_from_user() 3163 (uintptr_t)hdr->msgh_bits, in ipc_kmsg_copyin_from_user() 3170 hdr->msgh_bits, in ipc_kmsg_copyin_from_user() 3672 (uintptr_t)msg->msgh_bits, in ipc_kmsg_copyout_header() 3678 (uintptr_t)msg->msgh_bits, in ipc_kmsg_copyout_header() 4491 mbits = hdr->msgh_bits; in ipc_kmsg_copyout_dest_to_user() 4543 .msgh_bits = mbits, in ipc_kmsg_copyout_dest_to_user() 4632 hdr->msgh_bits = in ipc_kmsg_copyout_dest_to_kernel() 4645 .msgh_bits = hdr->msgh_bits, in ipc_kmsg_deflate_header() 5108 hdr->msgh_bits = bits; in ipc_kmsg_copyin_from_kernel() [all …]
|
| H A D | ipc_importance.c | 719 if (MACH_MSGH_BITS_RAISED_IMPORTANCE(hdr->msgh_bits)) { in ipc_importance_task_propagate_helper() 724 hdr->msgh_bits |= MACH_MSGH_BITS_RAISEIMP; in ipc_importance_task_propagate_helper() 732 hdr->msgh_bits &= ~MACH_MSGH_BITS_RAISEIMP; in ipc_importance_task_propagate_helper() 2629 hdr->msgh_bits |= MACH_MSGH_BITS_RAISEIMP; in ipc_importance_send() 2756 hdr->msgh_bits &= ~MACH_MSGH_BITS_RAISEIMP; in ipc_importance_inherit_from_kmsg() 2951 hdr->msgh_bits |= MACH_MSGH_BITS_RAISEIMP; in ipc_importance_inherit_from_kmsg() 2954 hdr->msgh_bits &= ~MACH_MSGH_BITS_RAISEIMP; in ipc_importance_inherit_from_kmsg() 3221 hdr->msgh_bits |= (MACH_MSG_TYPE_MOVE_SEND << 16); in ipc_importance_receive() 3257 hdr->msgh_bits &= ~MACH_MSGH_BITS_RAISEIMP; in ipc_importance_receive() 3308 hdr->msgh_bits &= ~MACH_MSGH_BITS_RAISEIMP; in ipc_importance_unreceive() [all …]
|
| H A D | flipc.c | 202 if (ikm_header(kmsg)->msgh_bits & MACH_MSGH_BITS_COMPLEX) { in flipc_msg_size_from_kmsg() 218 if (ikm_header(kmsg)->msgh_bits & MACH_MSGH_BITS_COMPLEX) { in mnl_msg_from_kmsg() 304 mmsg->msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0); in flipc_cmd_ipc() 603 msg->msgh_bits = MACH_MSGH_BITS_SET(0, 0, 0, 0); in flipc_msg_ack()
|
| /xnu-11215/osfmk/kern/ |
| H A D | ipc_mig.c | 288 assert(hdr->msgh_bits & MACH_MSGH_BITS_COMPLEX); 289 hdr->msgh_bits |= MACH_MSGH_BITS_COMPLEX; 296 assert(!(hdr->msgh_bits & MACH_MSGH_BITS_COMPLEX)); 297 hdr->msgh_bits &= ~MACH_MSGH_BITS_COMPLEX; 400 hdr->msgh_bits |= in kernel_mach_msg_rpc_common() 599 mach_msg_bits_t mbits = msg->msgh_bits; in mach_msg_destroy_from_kernel() 631 if (msg->msgh_bits & MACH_MSGH_BITS_COMPLEX) { in mach_msg_destroy_from_kernel_proper()
|
| H A D | ipc_kobject.c | 369 if (hdr->msgh_bits & MACH_MSGH_BITS_COMPLEX) { in ipc_kobject_reply_status() 383 assert(!(error->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX)); in ipc_kobject_set_reply_error_status() 423 OutP->Head.msgh_bits = in ipc_kobject_init_reply() 424 MACH_MSGH_BITS_SET(MACH_MSGH_BITS_LOCAL(InP->msgh_bits), 0, 0, 0); in ipc_kobject_init_reply() 450 OutP->Head.msgh_bits = InP->Head.msgh_bits & ~MACH_MSGH_BITS_COMPLEX; in ipc_kobject_init_new_reply() 643 assert(!(ikm_header(reply)->msgh_bits & MACH_MSGH_BITS_COMPLEX)); in ipc_kobject_server_internal() 713 switch (MACH_MSGH_BITS_REMOTE(req_hdr->msgh_bits)) { in ipc_kobject_server() 733 MACH_MSGH_BITS_VOUCHER(req_hdr->msgh_bits)); in ipc_kobject_server()
|
| /xnu-11215/tests/ipc/ |
| H A D | mach_msg_transport.c | 123 msg->msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_COPY_SEND, 0, 0, 0); in t_send() 145 msg->msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_COPY_SEND, 0, 0, in t_send() 426 T_ASSERT_EQ(msg.base.header.msgh_bits & MACH_MSGH_BITS_COMPLEX, in t_mach_msg_descriptor_port() 495 T_ASSERT_EQ(msg.base.header.msgh_bits & MACH_MSGH_BITS_COMPLEX, in t_mach_msg_descriptor_guarded_port() 576 T_ASSERT_EQ(msg.base.header.msgh_bits & MACH_MSGH_BITS_COMPLEX, in t_mach_msg_descriptor_port_array() 645 T_ASSERT_EQ(msg.base.header.msgh_bits & MACH_MSGH_BITS_COMPLEX, in t_mach_msg_descriptor_memory()
|
| H A D | port_turnstile_stash.c | 69 .msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_MAKE_SEND, 0, 0, MACH_MSGH_BITS_COMPLEX), 131 .msgh_bits =
|
| H A D | mach_msg2.c | 318 msg.header.msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_COPY_SEND, 433 buffer.msg.header.msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_COPY_SEND, 468 buffer.msg.header.msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_COPY_SEND, 482 buffer.msg.header.msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_COPY_SEND, 581 buffer.msg.header.msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_COPY_SEND,
|
| /xnu-11215/tools/tests/MPMMTest/ |
| H A D | KQMPMMtest.c | 454 args.req_msg->msgh_bits = 0; in server() 478 if (args.req_msg->msgh_bits & MACH_MSGH_BITS_COMPLEX) { in server() 488 args.reply_msg->msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, in server() 642 req->msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, in client() 649 (req)->msgh_bits |= MACH_MSGH_BITS_COMPLEX; in client() 678 reply->msgh_bits = 0; in client()
|
| H A D | MPMMtest.c | 532 if (args->req_msg->msgh_bits & MACH_MSGH_BITS_COMPLEX) { in server() 542 args->reply_msg->msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_MOVE_SEND_ONCE, 0); in server() 742 req->msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0); in client() 745 req->msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, in client() 751 (req)->msgh_bits |= MACH_MSGH_BITS_COMPLEX; in client() 787 reply->msgh_bits = 0; in client()
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | ipc.py | 250 bits = kmsgh.msgh_bits & 0xff 264 bits = (kmsgh.msgh_bits & 0xff00) >> 8 279 bits = (kmsgh.msgh_bits & 0xff0000) >> 16 291 if kmsgh.msgh_bits & 0x80000000: 297 if kmsgh.msgh_bits & 0x20000000: 308 if kmsgh.msgh_bits & 0x80000000: 355 if kmsgh.msgh_bits & 0x80000000: # MACH_MSGH_BITS_COMPLEX 405 if kmsgh.msgh_bits & 0x80000000: # MACH_MSGH_BITS_COMPLEX 1141 disp = kmsgh.msgh_bits & 0x1f 1146 disp = (kmsgh.msgh_bits & 0x1f00) >> 8 [all …]
|
| /xnu-11215/tests/workq/ |
| H A D | workq_83476290.c | 75 .msgh_bits = MACH_MSGH_BITS_SET(MACH_MSG_TYPE_COPY_SEND,
|