/xnu-2422.115.4/EXTERNAL_HEADERS/architecture/i386/ |
H A D | pio.h | 65 i386_ioport_t port) 68 __asm__ volatile("inl %w1, %0" : "=a" (datum) : "Nd" (port)); 73 i386_ioport_t port) 76 __asm__ volatile("inw %w1, %w0" : "=a" (datum) : "Nd" (port)); 81 i386_ioport_t port) 84 __asm__ volatile("inb %w1, %b0" : "=a" (datum) : "Nd" (port)); 89 i386_ioport_t port, 92 __asm__ volatile("outl %0, %w1" : : "a" (datum), "Nd" (port)); 96 i386_ioport_t port, 99 __asm__ volatile("outw %w0, %w1" : : "a" (datum), "Nd" (port)); 64 inl( i386_ioport_t port) argument 72 inw( i386_ioport_t port) argument 80 inb( i386_ioport_t port) argument 88 outl( i386_ioport_t port, unsigned int datum) argument 95 outw( i386_ioport_t port, unsigned short datum) argument 102 outb( i386_ioport_t port, unsigned char datum) argument [all...] |
/xnu-2422.115.4/osfmk/mach/ |
H A D | task_special_ports.h | 62 * port identifiers - they are only used for the task_get_special_port 75 #define TASK_HOST_PORT 2 /* The host (priv) port for task. */ 77 #define TASK_NAME_PORT 3 /* the name (unpriv) port for task */ 85 #define TASK_SEATBELT_PORT 7 /* Seatbelt compiler/DEM port for task. */ 87 /* PORT 8 was the GSSD TASK PORT which transformed to a host port */ 96 #define task_get_kernel_port(task, port) \ 97 (task_get_special_port((task), TASK_KERNEL_PORT, (port))) 99 #define task_set_kernel_port(task, port) \ 100 (task_set_special_port((task), TASK_KERNEL_PORT, (port))) 102 #define task_get_host_port(task, port) \ [all...] |
H A D | thread_special_ports.h | 62 * port identifiers - they are only used for the thread_get_special_port 77 #define thread_get_kernel_port(thread, port) \ 78 (thread_get_special_port((thread), THREAD_KERNEL_PORT, (port))) 80 #define thread_set_kernel_port(thread, port) \ 81 (thread_set_special_port((thread), THREAD_KERNEL_PORT, (port)))
|
H A D | host_special_ports.h | 107 * be the local node host port. In the set call, the host must the per-node 108 * host port for the node being affected. 110 #define host_get_host_port(host, port) \ 112 HOST_LOCAL_NODE, HOST_PORT, (port))) 113 #define host_set_host_port(host, port) (KERN_INVALID_ARGUMENT) 115 #define host_get_host_priv_port(host, port) \ 117 HOST_LOCAL_NODE, HOST_PRIV_PORT, (port))) 118 #define host_set_host_priv_port(host, port) (KERN_INVALID_ARGUMENT) 120 #define host_get_io_master_port(host, port) \ 122 HOST_LOCAL_NODE, HOST_IO_MASTER_PORT, (port))) [all...] |
/xnu-2422.115.4/osfmk/ipc/ |
H A D | ipc_notify.h | 73 /* Send a port-deleted notification */ 75 ipc_port_t port, 80 ipc_port_t port, 83 /* Send a port-destroyed notification */ 85 ipc_port_t port, 90 ipc_port_t port, 95 ipc_port_t port); 99 ipc_port_t port,
|
H A D | ipc_notify.c | 66 #include <mach/port.h> 76 * Send a port-deleted notification. 79 * Consumes a ref/soright for port. 84 ipc_port_t port, 87 (void)mach_notify_port_deleted(port, name); 97 * Consumes a ref/soright for port. 102 ipc_port_t port, 105 (void)mach_notify_send_possible(port, name); 112 * Send a port-destroyed notification. 115 * Consumes a ref/soright for port 83 ipc_notify_port_deleted( ipc_port_t port, mach_port_name_t name) argument 101 ipc_notify_send_possible( ipc_port_t port, mach_port_name_t name) argument 122 ipc_notify_port_destroyed( ipc_port_t port, ipc_port_t right) argument 140 ipc_notify_no_senders( ipc_port_t port, mach_port_mscount_t mscount) argument 158 ipc_notify_send_once( ipc_port_t port) argument 175 ipc_notify_dead_name( ipc_port_t port, mach_port_name_t name) argument [all...] |
H A D | ipc_port.c | 75 #include <mach/port.h> 103 ipc_port_t port, 114 ipc_port_release(ipc_port_t port) argument 116 ip_release(port); 120 ipc_port_reference(ipc_port_t port) argument 122 ip_reference(port); 144 * The port is locked and active. 153 ipc_port_t port, 163 ipc_port_t port, 179 assert(ip_active(port)); 152 ipc_port_request_alloc( ipc_port_t port, mach_port_name_t name, ipc_port_t soright, boolean_t send_possible, boolean_t immediate, ipc_port_request_index_t *indexp, boolean_t *importantp) argument 239 ipc_port_request_grow( ipc_port_t port, ipc_table_elems_t target_size) argument 353 ipc_port_request_sparm( ipc_port_t port, __assert_only mach_port_name_t name, ipc_port_request_index_t index, mach_msg_option_t option) argument 406 ipc_port_request_type( ipc_port_t port, __assert_only mach_port_name_t name, ipc_port_request_index_t index) argument 445 ipc_port_request_cancel( ipc_port_t port, __assert_only mach_port_name_t name, ipc_port_request_index_t index) argument 483 ipc_port_pdrequest( ipc_port_t port, ipc_port_t notify, ipc_port_t *previousp) argument 512 ipc_port_nsrequest( ipc_port_t port, mach_port_mscount_t sync, ipc_port_t notify, ipc_port_t *previousp) argument 549 ipc_port_clear_receiver( ipc_port_t port, queue_t links) argument 587 ipc_port_init( ipc_port_t port, ipc_space_t space, mach_port_name_t name) argument 644 ipc_port_t port; local 703 ipc_port_t port; local 746 ipc_port_spnotify( ipc_port_t port) argument 835 ipc_port_dnnotify( ipc_port_t port) argument 872 ipc_port_destroy( ipc_port_t port) argument 1026 ipc_port_check_circularity( ipc_port_t port, ipc_port_t dest) argument 1260 ipc_port_importance_delta( ipc_port_t port, mach_port_delta_t delta) argument 1368 ipc_port_t port; local 1403 ipc_port_make_send_locked( ipc_port_t port) argument 1420 ipc_port_make_send( ipc_port_t port) argument 1452 ipc_port_copy_send( ipc_port_t port) argument 1519 ipc_port_release_send( ipc_port_t port) argument 1561 ipc_port_make_sonce_locked( ipc_port_t port) argument 1579 ipc_port_make_sonce( ipc_port_t port) argument 1611 ipc_port_release_sonce( ipc_port_t port) argument 1637 ipc_port_release_receive( ipc_port_t port) argument 1670 ipc_port_t port; local 1717 ipc_port_dealloc_special( ipc_port_t port, __assert_only ipc_space_t space) argument 1751 ipc_port_finalize( ipc_port_t port) argument 1822 ipc_port_init_debug( ipc_port_t port, uintptr_t *callstack, unsigned int callstack_max) argument 1886 ipc_port_track_dealloc( __unused ipc_port_t port) argument 1892 ipc_port_track_dealloc( ipc_port_t port) argument [all...] |
H A D | ipc_port.h | 84 #include <mach/port.h> 96 * A receive right (port) can be in four states: 101 * to the destination port and holds a ref for it) 104 * If the port is active, and ip_receiver points to some space, 106 * If the port is not active, then ip_timestamp contains a timestamp 107 * taken when the port was destroyed. 145 ip_impdonation:1, /* port supports importance donation */ 148 ip_guarded:1, /* port guarded (use context value as guard) */ 188 #define IP_VALID(port) IPC_PORT_VALID(port) 231 struct ipc_port *port; member in union:ipc_port_request::__anon962 [all...] |
H A D | ipc_right.c | 75 #include <mach/port.h> 79 #include <ipc/port.h> 91 /* Allow IPC to generate mach port guard exceptions */ 201 ipc_port_t port; local 210 port = (ipc_port_t) object; 212 ip_lock(port); 213 if (!ip_active(port)) { 214 ip_unlock(port); 219 if (port->ip_receiver == space) { 220 name = port 287 ipc_port_t port = IP_NULL; local 444 ipc_right_request_cancel( __unused ipc_space_t space, ipc_port_t port, mach_port_name_t name, ipc_entry_t entry) argument 502 ipc_right_check( ipc_space_t space, ipc_port_t port, mach_port_name_t name, ipc_entry_t entry) argument 631 ipc_port_t port = (ipc_port_t) entry->ie_object; local 759 ipc_port_t port = (ipc_port_t) entry->ie_object; local 881 ipc_port_t port = IP_NULL; local 1072 ipc_port_t port = IP_NULL; local 1450 ipc_port_t port = IP_NULL; local 1627 ipc_port_t port; local 1691 ipc_port_t port; local 1851 ipc_port_t port; local 2339 ipc_port_t port; local 2455 ipc_port_t port; local 2674 ipc_port_t port; local 2705 ipc_port_t port; local 2720 ipc_port_t port; local [all...] |
H A D | ipc_object.c | 78 #include <mach/port.h> 86 #include <ipc/port.h> 341 ipc_port_t port = (ipc_port_t)object; local 343 bzero((char *)port, sizeof(*port)); 345 mac_port_label_init(&port->ip_label); 412 ipc_port_t port = (ipc_port_t)object; local 414 bzero((char *)port, sizeof(*port)); 416 mac_port_label_init(&port 598 ipc_port_t port = (ipc_port_t) object; local 616 ipc_port_t port = (ipc_port_t) object; local 629 ipc_port_t port = (ipc_port_t) object; local 651 ipc_port_t port = (ipc_port_t) object; local 924 ipc_port_t port = (ipc_port_t)object; local 996 ipc_port_t port = (ipc_port_t) object; local 1019 ipc_port_t port = (ipc_port_t) object; local 1119 ipc_port_t port = (ipc_port_t)objp; local 1139 ipc_port_t port; local [all...] |
/xnu-2422.115.4/osfmk/kern/ |
H A D | audit_sessionport.c | 42 * the new port. 43 * *sessionport Pointer to the current session port. This may 47 * NULL Failed to allocate port (due to lack of memory 51 * If there were no outstanding send rights against the port, 55 * the port's reference until all send rights go away. 61 ipc_port_t port; local 64 * If we don't have an existing session port, then create one. 66 port = *sessionport; 67 if (!IP_VALID(port)) { 72 if (!OSCompareAndSwapPtr(port, new_por 123 audit_session_porttoaia(ipc_port_t port) argument 163 ipc_port_t port = notification->not_header.msgh_remote_port; local 201 ipc_port_t port = *sessionport; local [all...] |
H A D | ipc_clock.c | 58 ipc_port_t port; local 60 port = ipc_port_alloc_kernel(); 61 if (port == IP_NULL) 63 clock->cl_service = port; 65 port = ipc_port_alloc_kernel(); 66 if (port == IP_NULL) 68 clock->cl_control = port; 89 * Convert from a port to a clock. 90 * Doesn't consume the port ref; produces a clock ref, 97 ipc_port_t port) 96 convert_port_to_clock( ipc_port_t port) argument 123 convert_port_to_clock_ctrl( ipc_port_t port) argument 151 ipc_port_t port; local 169 ipc_port_t port; local 186 ipc_port_t port; local [all...] |
H A D | ipc_host.c | 86 ipc_port_t port, boolean_t matchn, processor_set_t *ppset); 97 ipc_port_t port; local 105 port = ipc_port_alloc_kernel(); 106 if (port == IP_NULL) 109 ipc_kobject_set(port, (ipc_kobject_t) &realhost, IKOT_HOST_SECURITY); 111 ipc_port_make_send(port)); 113 port = ipc_port_alloc_kernel(); 114 if (port == IP_NULL) 117 ipc_kobject_set(port, (ipc_kobject_t) &realhost, IKOT_HOST); 119 ipc_port_make_send(port)); 181 ipc_port_t port; local 214 ipc_port_t port; local 268 convert_port_to_host( ipc_port_t port) argument 296 convert_port_to_host_priv( ipc_port_t port) argument 323 convert_port_to_processor( ipc_port_t port) argument 350 convert_port_to_pset( ipc_port_t port) argument 376 convert_port_to_pset_name( ipc_port_t port) argument 392 ref_pset_port_locked(ipc_port_t port, boolean_t matchn, processor_set_t *ppset) argument 422 ipc_port_t port; local 442 ipc_port_t port = processor->processor_self; local 463 ipc_port_t port = pset->pset_self; local 485 ipc_port_t port = pset->pset_name_self; local 503 convert_port_to_host_security( ipc_port_t port) argument [all...] |
H A D | host_notify.c | 55 ipc_port_t port; member in struct:host_notify_entry 83 ipc_port_t port) 90 if (!IP_VALID(port)) 102 ip_lock(port); 103 if (!ip_active(port) || ip_kotype(port) != IKOT_NONE) { 104 ip_unlock(port); 112 entry->port = port; 113 ipc_kobject_set_atomically(port, (ipc_kobject_ 80 host_request_notification( host_t host, host_flavor_t notify_type, ipc_port_t port) argument 123 host_notify_port_destroy( ipc_port_t port) argument 176 ipc_port_t port; local [all...] |
H A D | mk_timer.c | 65 ipc_port_t port; local 75 result = ipc_port_translate_receive(myspace, name, &port); 88 timer->port = port; 89 ipc_kobject_set_atomically(port, (ipc_kobject_t)timer, IKOT_TIMER); 91 port->ip_srights++; 92 ip_reference(port); 93 ip_unlock(port); 100 ipc_port_t port) 104 ip_lock(port); 99 mk_timer_port_destroy( ipc_port_t port) argument 150 ipc_port_t port; local 211 ipc_port_t port; local 251 ipc_port_t port; local 312 ipc_port_t port; local [all...] |
H A D | ipc_sync.c | 37 #include <ipc/port.h> 43 #include <mach/port.h> 66 /* have the port locked */ 85 convert_port_to_semaphore (ipc_port_t port) argument 89 if (IP_VALID (port)) { 90 ip_lock(port); 91 if (ip_active(port) && (ip_kotype(port) == IKOT_SEMAPHORE)) { 92 semaphore = (semaphore_t) port->ip_kobject; 95 ip_unlock(port); 105 ipc_port_t port; local 117 convert_port_to_lock_set(__unused ipc_port_t port) argument [all...] |
H A D | ipc_host.h | 62 #include <mach/port.h> 68 /* Initialize ipc access to processor by allocating a port */ 72 /* Enable ipc control of processor by setting port object */ 92 /* Convert from a port to a clock */ 94 ipc_port_t port); 96 /* Convert from a port to a clock control */ 98 ipc_port_t port); 100 /* Convert from a clock to a port */ 104 /* Convert from a clock control to a port */ 112 /* Convert from a port t [all...] |
H A D | host_notify.h | 44 ipc_port_t port);
|
H A D | ipc_tt.h | 63 #include <mach/port.h> 118 /* Return a send right for the task's user-visible self port */ 122 /* Return a send right for the thread's user-visible self port */ 126 /* Convert from a port to a task name */ 128 ipc_port_t port); 130 /* Convert from a port to a task */ 132 ipc_port_t port); 138 ipc_port_t port, task_t *ptask); 140 /* Convert from a port to a space */ 142 ipc_port_t port); [all...] |
H A D | mk_timer.h | 51 ipc_port_t port; member in struct:mk_timer 57 ipc_port_t port);
|
/xnu-2422.115.4/libsyscall/mach/ |
H A D | mig_reply_port.c | 43 _mig_set_reply_port(mach_port_t port) argument 45 _os_tsd_set_direct(__TSD_MIG_REPLY, port); 49 * Called by mig interface code whenever a reply port is needed. 57 mach_port_t port = _mig_get_reply_port(); local 58 if (port == MACH_PORT_NULL) { 59 port = mach_reply_port(); 60 _mig_set_reply_port(port); 62 return port; 66 * Called by mig interface code after a timeout on the reply port. 67 * May also be called by user. The new mig calls with port passe 72 mach_port_t port = _mig_get_reply_port(); local 75 (void) mach_port_mod_refs(mach_task_self(), port, MACH_PORT_RIGHT_RECEIVE, -1); local [all...] |
/xnu-2422.115.4/osfmk/device/ |
H A D | iokit_rpc.c | 32 #include <mach/port.h> 81 ipc_port_t port, ipc_kobject_type_t type, mach_port_mscount_t * mscount ); 101 extern kern_return_t iokit_destroy_object_port( ipc_port_t port ); 112 extern void iokit_retain_port( ipc_port_t port ); 113 extern void iokit_release_port( ipc_port_t port ); 114 extern void iokit_release_port_send( ipc_port_t port ); 116 extern void iokit_lock_port(ipc_port_t port); 117 extern void iokit_unlock_port(ipc_port_t port); 119 extern kern_return_t iokit_switch_object_port( ipc_port_t port, io_object_t obj, ipc_kobject_type_t type ); 136 * Lookup a device by its port 140 iokit_lookup_object_port( ipc_port_t port) argument 162 iokit_lookup_connect_port( ipc_port_t port) argument 189 ipc_port_t port; local 260 register ipc_port_t port; local 282 register ipc_port_t port; local 306 ipc_port_t port; local 349 iokit_switch_object_port( ipc_port_t port, io_object_t obj, ipc_kobject_type_t type ) argument 361 ipc_port_t port; local 408 ipc_port_t port; local [all...] |
/xnu-2422.115.4/security/ |
H A D | mac_port.c | 104 mac_port_label_associate(struct label *it, struct label *st, struct label *port) argument 108 mac_label_journal(port, MLJ_PORT_OP_CREATE); 109 MAC_PERFORM(port_label_associate, it, st, port); 113 mac_port_label_associate_kernel(struct label *port, int isreply) argument 117 mac_label_journal(port, MLJ_PORT_OP_CREATE_K); 118 MAC_PERFORM(port_label_associate_kernel, port, isreply); 122 mac_port_label_update_kobject(struct label *port, int kotype) argument 126 mac_label_journal(port, MLJ_PORT_OP_UPDATE, kotype); 127 MAC_PERFORM(port_label_update_kobject, port, kotype); 165 mac_port_check_send(struct label *task, struct label *port) argument 185 mac_port_check_make_send(struct label *task, struct label *port) argument 195 mac_port_check_make_send_once(struct label *task, struct label *port) argument 205 mac_port_check_copy_send(struct label *task, struct label *port) argument 215 mac_port_check_move_send(struct label *task, struct label *port) argument 225 mac_port_check_move_send_once(struct label *task, struct label *port) argument 235 mac_port_check_move_receive(struct label *task, struct label *port) argument 245 mac_port_check_hold_send(struct label *task, struct label *port) argument 255 mac_port_check_hold_send_once(struct label *task, struct label *port) argument 265 mac_port_check_hold_receive(struct label *task, struct label *port) argument [all...] |
/xnu-2422.115.4/pexpert/pexpert/i386/ |
H A D | protos.h | 35 // IN(port) 38 // OUT(port, data) 44 in##s(i386_ioport_t port) \ 50 : "d" (port)); \ 56 out##s(i386_ioport_t port, unsigned u data) \ 61 : "d" (port), "a" (data)); \
|
/xnu-2422.115.4/tools/tests/unit_tests/guarded_mach_port_tests_11178535_src/ |
H A D | guarded_test.c | 7 #include <mach/port.h> 19 printf("Test 0: Test case for constructing a mach port with options\n"); 20 printf("Test 1: Test case for destructing guarded mach port\n"); 21 printf("Test 2: Test case for destroying guarded mach port\n"); 22 printf("Test 3: Test case for mod_ref() guarded mach port\n"); 23 printf("Test 4: Test case for guarding mach port\n"); 24 printf("Test 5: Test case for unguarding mach port\n"); 25 printf("Test 6: Test case for unguarding a non-guarded port\n"); 26 printf("Test 7: Test case for guarding a mach port with context\n"); 31 /* Test case for constructing a mach port wit 107 mach_port_t port; local 197 mach_port_t port; local 259 mach_port_t port; local 282 mach_port_t port; local 305 mach_port_t port; local 338 mach_port_t port; local 375 mach_port_t port; local 398 mach_port_t port; local 423 mach_port_t port; local 492 mach_port_t port; local [all...] |