Lines Matching refs:mach_task_self
91 mach_port_mod_refs(mach_task_self(), mp, MACH_PORT_RIGHT_SEND, 1); in vprocmgr_lookup_vproc()
94 (void)mach_port_deallocate(mach_task_self(), mp); in vprocmgr_lookup_vproc()
120 mach_port_deallocate(mach_task_self(), vp->j_port); in vproc_release()
442 task_set_bootstrap_port(mach_task_self(), puc); in _vprocmgr_move_subset_to_user()
443 mach_port_deallocate(mach_task_self(), bootstrap_port); in _vprocmgr_move_subset_to_user()
447 mach_port_deallocate(mach_task_self(), puc); in _vprocmgr_move_subset_to_user()
464 task_name_for_pid(mach_task_self(), getpid(), &tnp); in _vprocmgr_switch_to_session()
470 task_set_bootstrap_port(mach_task_self(), new_bsport); in _vprocmgr_switch_to_session()
471 mach_port_deallocate(mach_task_self(), bootstrap_port); in _vprocmgr_switch_to_session()
487 kern_return_t kr = vproc_mig_post_fork_ping(bootstrap_port, mach_task_self(), &session); in _vproc_post_fork_ping()
495 (void)mach_port_deallocate(mach_task_self(), session); in _vproc_post_fork_ping()
664 mach_port_deallocate(mach_task_self(), puc); in _spawn_via_launchd()
683 mach_port_mod_refs(mach_task_self(), obsvr_port, MACH_PORT_RIGHT_RECEIVE, -1); in _spawn_via_launchd()
685 mach_port_deallocate(mach_task_self(), obsvr_port); in _spawn_via_launchd()
926 (void)mach_port_deallocate(mach_task_self(), rootbs); in reboot2()
1014 return (errno = mach_port_set_context(mach_task_self(), p, ctx)); in helper_recv_wait()
1028 if ((errno = mach_port_get_context(mach_task_self(), port, &ctx)) == KERN_SUCCESS) { in launch_wait()
1061 (void)mach_port_deallocate(mach_task_self(), fdps[i]); in launch_socket_service_check_in()