Lines Matching refs:port
58 ipc_port_t port;
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_t)entry, IKOT_HOST_NOTIFY);
113 ip_unlock(port);
123 ipc_port_t port)
129 ip_lock(port);
130 if (ip_kotype(port) == IKOT_HOST_NOTIFY) {
131 entry = (host_notify_t)port->ip_kobject;
133 ipc_kobject_set_atomically(port, IKO_NULL, IKOT_NONE);
134 ip_unlock(port);
136 assert(entry->port == port);
141 ipc_port_release_sonce(port);
144 ip_unlock(port);
175 ipc_port_t port;
177 port = entry->port;
178 assert(port != IP_NULL);
180 ip_lock(port);
181 assert(ip_kotype(port) == IKOT_HOST_NOTIFY);
182 assert(port->ip_kobject == (ipc_kobject_t)entry);
183 ipc_kobject_set_atomically(port, IKO_NULL, IKOT_NONE);
184 ip_unlock(port);
189 msg->msgh_remote_port = port;