• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/xnu-2782.1.97/osfmk/ipc/

Lines Matching refs:port

84 #include <mach/port.h>
97 * A receive right (port) can be in four states:
102 * to the destination port and holds a ref for it)
105 * If the port is active, and ip_receiver points to some space,
107 * If the port is not active, then ip_timestamp contains a timestamp
108 * taken when the port was destroyed.
146 ip_impdonation:1, /* port supports importance donation */
148 ip_guarded:1, /* port guarded (use context value as guard) */
184 #define IP_VALID(port) IPC_PORT_VALID(port)
186 #define ip_active(port) io_active(&(port)->ip_object)
187 #define ip_lock_init(port) io_lock_init(&(port)->ip_object)
188 #define ip_lock(port) io_lock(&(port)->ip_object)
189 #define ip_lock_try(port) io_lock_try(&(port)->ip_object)
190 #define ip_unlock(port) io_unlock(&(port)->ip_object)
192 #define ip_reference(port) io_reference(&(port)->ip_object)
193 #define ip_release(port) io_release(&(port)->ip_object)
195 #define ip_kotype(port) io_kotype(&(port)->ip_object)
197 #define ip_full_kernel(port) imq_full_kernel(&(port)->ip_messages)
198 #define ip_full(port) imq_full(&(port)->ip_messages)
203 * port and we should use that when sending (from the kernel) rather than
209 #define IP_PREALLOC(port) ((port)->ip_bits & IP_BIT_PREALLOC)
211 #define IP_SET_PREALLOC(port, kmsg) \
213 (port)->ip_bits |= IP_BIT_PREALLOC; \
214 (port)->ip_premsg = (kmsg); \
217 #define IP_CLEAR_PREALLOC(port, kmsg) \
219 assert((port)->ip_premsg == kmsg); \
220 (port)->ip_bits &= ~IP_BIT_PREALLOC; \
221 (port)->ip_premsg = IKM_NULL; \
227 struct ipc_port *port;
240 #define ipr_soright notify.port
275 * The port timestamp facility provides timestamps
276 * for port destruction. It is used to serialize
277 * mach_port_names with port death.
282 /* Retrieve a port timestamp value */
308 ipc_port_t port,
318 ipc_port_t port,
326 /* Grow one of a port's tables of notifcation requests */
328 ipc_port_t port,
333 ipc_port_t port,
339 ipc_port_t port,
346 ipc_port_t port,
352 ipc_port_t port,
357 /* Macros for manipulating a port's dead name notificaiton requests */
358 #define ipc_port_request_rename(port, index, oname, nname) \
362 assert(ip_active(port)); \
364 table = port->ip_requests; \
374 /* Make a port-deleted request */
376 ipc_port_t port,
382 ipc_port_t port,
387 #define ipc_port_set_mscount(port, mscount) \
389 assert(ip_active(port)); \
391 (port)->ip_mscount = (mscount); \
396 ipc_port_t port,
399 /* Initialize a newly-allocated port */
401 ipc_port_t port,
405 /* Allocate a port */
411 /* Allocate a port, with a specific name */
419 ipc_port_t port);
423 ipc_port_t port);
425 /* Destroy a port */
427 ipc_port_t port);
429 /* Check if queueing "port" in a message for "dest" would create a circular
433 ipc_port_t port,
437 /* apply importance delta to port only */
440 ipc_port_t port,
444 /* apply importance delta to port, and return task importance for update */
447 ipc_port_t port,
451 /* Apply an importance delta to a port and reflect change in receiver task */
454 ipc_port_t port,
458 /* Make a send-once notify port from a receive right */
463 /* Make a naked send right from a receive right - port locked and active */
465 ipc_port_t port);
469 ipc_port_t port);
473 ipc_port_t port);
486 ipc_port_t port);
489 ipc_port_t port);
492 ipc_port_t port);
500 ipc_port_t port);
504 ipc_port_t port);
508 ipc_port_t port);
512 ipc_port_t port);
514 /* finalize the destruction of a port before it gets freed */
516 ipc_port_t port);
518 /* Allocate a port in a special space */
522 /* Deallocate a port in a special space */
524 ipc_port_t port,
528 /* Track low-level port deallocation */
530 ipc_port_t port);
532 /* Initialize general port debugging state */
538 #define ipc_port_dealloc_kernel(port) \
539 ipc_port_dealloc_special((port), ipc_space_kernel)
543 #define ipc_port_dealloc_reply(port) \
544 ipc_port_dealloc_special((port), ipc_space_reply)