Searched refs:port (Results 1 - 25 of 159) sorted by relevance

1234567

/macosx-10.5.8/xnu-1228.15.4/osfmk/mach/
H A Dtask_special_ports.h62 * 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 */
89 #define TASK_SEATBELT_PORT 7 /* Seatbelt compiler/DEM port for task. */
91 #define TASK_GSSD_PORT 8 /* GSSD port for security context */
97 #define task_get_wired_ledger_port(task, port) \
98 (task_get_special_port((task), TASK_WIRED_LEDGER_PORT, (port)))
100 #define task_set_wired_ledger_port(task, port) \
101 (task_set_special_port((task), TASK_WIRED_LEDGER_PORT, (port)))
103 #define task_get_paged_ledger_port(task, port) \
[all...]
H A Dhost_special_ports.h103 * be the local node host port. In the set call, the host must the per-node
104 * host port for the node being affected.
106 #define host_get_host_port(host, port) \
108 HOST_LOCAL_NODE, HOST_PORT, (port)))
109 #define host_set_host_port(host, port) (KERN_INVALID_ARGUMENT)
111 #define host_get_host_priv_port(host, port) \
113 HOST_LOCAL_NODE, HOST_PRIV_PORT, (port)))
114 #define host_set_host_priv_port(host, port) (KERN_INVALID_ARGUMENT)
116 #define host_get_io_master_port(host, port) \
118 HOST_LOCAL_NODE, HOST_IO_MASTER_PORT, (port)))
[all...]
H A Dthread_special_ports.h62 * 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 Dnorma_special_ports.h69 #define norma_get_host_port(host, node, port) \
71 HOST_PORT, (port)))
73 #define norma_get_host_priv_port(host, node, port) \
75 HOST_PRIV_PORT, (port)))
77 #define norma_get_io_master_port(host, node, port) \
79 HOST_IO_MASTER_PORT, (port)))
81 #define norma_get_dynamic_pager_port(host, port) \
83 HOST_DYNAMIC_PAGER_PORT, (port)))
85 #define norma_get_audit_control_port(host, node, port) \
87 HOST_AUDIT_CONTROL_PORT, (port)))
[all...]
H A Dstd_types.h69 #include <mach/port.h>
/macosx-10.5.8/xnu-1228.15.4/EXTERNAL_HEADERS/architecture/i386/
H A Dpio.h65 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 long datum) argument
95 outw( i386_ioport_t port, unsigned short datum) argument
102 outb( i386_ioport_t port, unsigned char datum) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/ipc/
H A Dipc_notify.c66 #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);
94 * Send a port-destroyed notification.
97 * Consumes a ref/soright for port.
105 ipc_port_t port,
108 mach_notify_port_destroyed(port, right);
118 * Consumes a ref/soright for port
83 ipc_notify_port_deleted( ipc_port_t port, mach_port_name_t name) argument
104 ipc_notify_port_destroyed( ipc_port_t port, ipc_port_t right) argument
122 ipc_notify_no_senders( ipc_port_t port, mach_port_mscount_t mscount) argument
140 ipc_notify_send_once( ipc_port_t port) argument
157 ipc_notify_dead_name( ipc_port_t port, mach_port_name_t name) argument
[all...]
H A Dipc_notify.h73 /* Send a port-deleted notification */
75 ipc_port_t port,
78 /* Send a port-destroyed notification */
80 ipc_port_t port,
85 ipc_port_t port,
90 ipc_port_t port);
94 ipc_port_t port,
H A Dipc_port.h83 #include <mach/port.h>
95 * A receive right (port) can be in four states:
100 * to the destination port and holds a ref for it)
103 * If the port is active, and ip_receiver points to some space,
105 * If the port is not active, then ip_timestamp contains a timestamp
106 * taken when the port was destroyed.
175 #define IP_VALID(port) IPC_PORT_VALID(port)
177 #define ip_active(port) io_active(&(port)
216 struct ipc_port *port; member in union:ipc_port_request::__anon778
[all...]
H A Dipc_port.c77 #include <mach/port.h>
111 ipc_port_t port);
145 * The port is locked and active.
153 ipc_port_t port,
161 assert(ip_active(port));
165 table = port->ip_dnrequests;
187 * Grow a port's table of dead-name requests.
189 * The port must be locked and active.
191 * Upon return the port is unlocked.
195 * KERN_SUCCESS The port die
152 ipc_port_dnrequest( ipc_port_t port, mach_port_name_t name, ipc_port_t soright, ipc_port_request_index_t *indexp) argument
201 ipc_port_dngrow( ipc_port_t port, ipc_table_elems_t target_size) argument
311 ipc_port_dncancel( ipc_port_t port, __assert_only mach_port_name_t name, ipc_port_request_index_t index) argument
352 ipc_port_pdrequest( ipc_port_t port, ipc_port_t notify, ipc_port_t *previousp) argument
381 ipc_port_nsrequest( ipc_port_t port, mach_port_mscount_t sync, ipc_port_t notify, ipc_port_t *previousp) argument
418 ipc_port_clear_receiver( ipc_port_t port) argument
454 ipc_port_init( ipc_port_t port, ipc_space_t space, mach_port_name_t name) argument
502 ipc_port_t port; local
550 ipc_port_t port; local
583 ipc_port_dnnotify( __unused ipc_port_t port, ipc_port_request_t dnrequests) argument
622 ipc_port_destroy( ipc_port_t port) argument
714 ipc_port_check_circularity( ipc_port_t port, ipc_port_t dest) argument
855 ipc_port_t port; local
890 ipc_port_make_send_locked( ipc_port_t port) argument
908 ipc_port_make_send( ipc_port_t port) argument
940 ipc_port_copy_send( ipc_port_t port) argument
1007 ipc_port_release_send( ipc_port_t port) argument
1045 ipc_port_make_sonce( ipc_port_t port) argument
1074 ipc_port_release_sonce( ipc_port_t port) argument
1105 ipc_port_release_receive( ipc_port_t port) argument
1137 ipc_port_t port; local
1175 ipc_port_dealloc_special( ipc_port_t port, __assert_only ipc_space_t space) argument
1242 ipc_port_init_debug( ipc_port_t port) argument
1279 ipc_port_track_dealloc( __unused ipc_port_t port) argument
1285 ipc_port_track_dealloc( ipc_port_t port) argument
1318 ipc_port_print( ipc_port_t port, __unused boolean_t have_addr, __unused db_expr_t count, char *modif) argument
1459 ipc_port_t port; local
1481 ipc_port_t port; local
1646 db_port_queue_print( ipc_port_t port) argument
1670 db_port_stack_trace( ipc_port_t port) argument
1836 ipc_port_t port; local
[all...]
H A Dipc_right.c75 #include <mach/port.h>
79 #include <ipc/port.h>
194 ipc_port_t port; local
203 port = (ipc_port_t) object;
205 ip_lock(port);
206 if (!ip_active(port)) {
207 ip_unlock(port);
212 if (port->ip_receiver == space) {
213 name = port->ip_receiver_name;
220 assert(port
288 ipc_port_t port; local
398 ipc_right_dncancel( __unused ipc_space_t space, ipc_port_t port, mach_port_name_t name, ipc_entry_t entry) argument
451 ipc_right_check( ipc_space_t space, ipc_port_t port, mach_port_name_t name, ipc_entry_t entry) argument
572 ipc_port_t port = (ipc_port_t) entry->ie_object; local
686 ipc_port_t port = (ipc_port_t) entry->ie_object; local
809 ipc_port_t port, dnrequest; local
842 ipc_port_t port; local
896 ipc_port_t port; local
1017 ipc_port_t port; local
1085 ipc_port_t port, dnrequest; local
1133 ipc_port_t port; local
1171 ipc_port_t port; local
1297 ipc_port_t port = (ipc_port_t) entry->ie_object; local
1333 ipc_port_t port; local
1499 ipc_port_t port; local
1533 ipc_port_t port; local
1566 ipc_port_t port; local
1622 ipc_port_t port; local
1673 ipc_port_t port; local
1750 ipc_port_t port; local
1952 ipc_port_t port; local
2063 ipc_port_t port; local
2261 ipc_port_t port; local
2291 ipc_port_t port; local
2306 ipc_port_t port; local
[all...]
H A Dipc_pset.c63 * Functions to manipulate IPC port sets.
66 #include <mach/port.h>
82 * Allocate a port set.
84 * Nothing locked. If successful, the port set is returned
87 * KERN_SUCCESS The port set is allocated.
121 * Allocate a port set, with a specific name.
123 * Nothing locked. If successful, the port set is returned
126 * KERN_SUCCESS The port set is allocated.
159 * Checks to see if a port is a member of a pset
161 * Both port an
165 ipc_pset_member( ipc_pset_t pset, ipc_port_t port) argument
185 ipc_pset_add( ipc_pset_t pset, ipc_port_t port) argument
215 ipc_pset_remove( ipc_pset_t pset, ipc_port_t port) argument
243 ipc_pset_remove_from_all( ipc_port_t port) argument
[all...]
H A Dipc_object.c78 #include <mach/port.h>
86 #include <ipc/port.h>
345 ipc_port_t port = (ipc_port_t)object; local
347 bzero((char *)port, sizeof(*port));
349 mac_port_label_init(&port->ip_label);
416 ipc_port_t port = (ipc_port_t)object; local
418 bzero((char *)port, sizeof(*port));
420 mac_port_label_init(&port
571 ipc_port_t port = (ipc_port_t) object; local
589 ipc_port_t port = (ipc_port_t) object; local
602 ipc_port_t port = (ipc_port_t) object; local
623 ipc_port_t port = (ipc_port_t) object; local
889 ipc_port_t port = (ipc_port_t) object; local
912 ipc_port_t port = (ipc_port_t) object; local
1012 ipc_port_t port = (ipc_port_t)objp; local
1032 ipc_port_t port; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/kern/
H A Dipc_clock.c58 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 Dipc_sync.c37 #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
116 convert_port_to_lock_set(ipc_port_t port) argument
135 ipc_port_t port; local
[all...]
H A Dipc_host.c94 ipc_port_t port, boolean_t matchn, processor_set_t *ppset);
102 ipc_port_t port; local
110 port = ipc_port_alloc_kernel();
111 if (port == IP_NULL)
114 ipc_kobject_set(port, (ipc_kobject_t) &realhost, IKOT_HOST_SECURITY);
116 ipc_port_make_send(port));
118 port = ipc_port_alloc_kernel();
119 if (port == IP_NULL)
122 ipc_kobject_set(port, (ipc_kobject_t) &realhost, IKOT_HOST);
124 ipc_port_make_send(port));
186 ipc_port_t port; local
264 ipc_port_t port; local
318 convert_port_to_host( ipc_port_t port) argument
346 convert_port_to_host_priv( ipc_port_t port) argument
373 convert_port_to_processor( ipc_port_t port) argument
400 convert_port_to_pset( ipc_port_t port) argument
426 convert_port_to_pset_name( ipc_port_t port) argument
442 ref_pset_port_locked(ipc_port_t port, boolean_t matchn, processor_set_t *ppset) argument
472 ipc_port_t port; local
491 ipc_port_t port; local
522 ipc_port_t port = pset->pset_self; local
544 ipc_port_t port = pset->pset_name_self; local
562 convert_port_to_host_security( ipc_port_t port) argument
[all...]
H A Dhost_notify.c58 ipc_port_t port; member in struct:host_notify_entry
82 ipc_port_t port)
89 if (!IP_VALID(port))
101 ip_lock(port);
102 if (!ip_active(port) || ip_kotype(port) != IKOT_NONE) {
103 ip_unlock(port);
111 entry->port = port;
112 ipc_kobject_set_atomically(port, (ipc_kobject_
79 host_request_notification( host_t host, host_flavor_t notify_type, ipc_port_t port) argument
122 host_notify_port_destroy( ipc_port_t port) argument
175 ipc_port_t port; local
[all...]
H A Dmk_timer.c65 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
148 ipc_port_t port; local
197 ipc_port_t port; local
224 ipc_port_t port; local
264 ipc_port_t port; local
[all...]
H A Dipc_host.h62 #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 Dhost_notify.h44 ipc_port_t port);
H A Dipc_tt.h63 #include <mach/port.h>
112 /* Return a send right for the task's user-visible self port */
116 /* Return a send right for the thread's user-visible self port */
120 /* Convert from a port to a task name */
122 ipc_port_t port);
124 /* Convert from a port to a task */
126 ipc_port_t port);
132 ipc_port_t port, task_t *ptask);
134 /* Convert from a port to a space */
136 ipc_port_t port);
[all...]
H A Dmk_timer.h51 ipc_port_t port; member in struct:mk_timer
57 ipc_port_t port);
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/
H A Dpio.h69 i386_ioport_t port);
72 i386_ioport_t port);
75 i386_ioport_t port);
78 i386_ioport_t port,
82 i386_ioport_t port,
86 i386_ioport_t port,
91 i386_ioport_t port,
96 i386_ioport_t port,
102 i386_ioport_t port,
107 i386_ioport_t port,
[all...]
/macosx-10.5.8/xnu-1228.15.4/security/
H A Dmac_port.c104 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...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/device/
H A Diokit_rpc.c35 #include <mach/port.h>
87 ipc_port_t port, ipc_kobject_type_t type, mach_port_mscount_t * mscount );
107 extern kern_return_t iokit_destroy_object_port( ipc_port_t port );
118 extern void iokit_retain_port( ipc_port_t port );
119 extern void iokit_release_port( ipc_port_t port );
121 extern kern_return_t iokit_switch_object_port( ipc_port_t port, io_object_t obj, ipc_kobject_type_t type );
138 * Lookup a device by its port.
143 ipc_port_t port)
147 if (!IP_VALID(port))
150 ip_lock(port);
142 iokit_lookup_object_port( ipc_port_t port) argument
164 iokit_lookup_connect_port( ipc_port_t port) argument
191 ipc_port_t port; local
237 register ipc_port_t port; local
259 register ipc_port_t port; local
283 ipc_port_t port; local
323 iokit_switch_object_port( ipc_port_t port, io_object_t obj, ipc_kobject_type_t type ) argument
333 ipc_port_t port; local
378 ipc_port_t port; local
[all...]

Completed in 68 milliseconds

1234567