Lines Matching refs:port
37 #include <ipc/port.h>
43 #include <mach/port.h>
66 /* have the port locked */
85 convert_port_to_semaphore (ipc_port_t port)
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;
108 port = ipc_port_make_send(semaphore->port);
110 port = IP_NULL;
112 return (port);
116 convert_port_to_lock_set (ipc_port_t port)
120 if (IP_VALID (port)) {
121 ip_lock(port);
122 if (ip_active(port) && (ip_kotype(port) == IKOT_LOCK_SET)) {
123 lock_set = (lock_set_t) port->ip_kobject;
126 ip_unlock(port);
135 ipc_port_t port;
138 port = ipc_port_make_send(lock_set->port);
140 port = IP_NULL;
142 return (port);