Lines Matching refs:port
43 _mig_set_reply_port(mach_port_t port)
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();
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 passed in.
72 mach_port_t port = _mig_get_reply_port();
73 if (port != MACH_PORT_NULL && port != _task_reply_port) {
75 (void) mach_port_mod_refs(mach_task_self(), port, MACH_PORT_RIGHT_RECEIVE, -1);
76 if (migport != port) {