Lines Matching refs:pself
233 proc_t pself = (proc_t)p; in get_dispatchqueue_offset_from_proc() local
234 return pself->p_dispatchqueue_offset; in get_dispatchqueue_offset_from_proc()
244 proc_t pself = (proc_t)p; in get_wq_quantum_offset_from_proc() local
245 return pself->p_pthread_wq_quantum_offset; in get_wq_quantum_offset_from_proc()
255 proc_t pself = (proc_t)p; in get_dispatchqueue_serialno_offset_from_proc() local
256 return pself->p_dispatchqueue_serialno_offset; in get_dispatchqueue_serialno_offset_from_proc()
266 proc_t pself = (proc_t)p; in get_dispatchqueue_label_offset_from_proc() local
267 return pself->p_dispatchqueue_label_offset; in get_dispatchqueue_label_offset_from_proc()
277 proc_t pself = (proc_t)p; in get_return_to_kernel_offset_from_proc() local
278 return pself->p_return_to_kernel_offset; in get_return_to_kernel_offset_from_proc()
3251 struct proc * pself = PROC_NULL; in proc_setcontrol() local
3257 pself = current_proc(); in proc_setcontrol()
3258 if (pid != proc_getpid(pself)) { in proc_setcontrol()
3263 if ((error = proc_security_policy(pself, PROC_INFO_CALL_SETCONTROL, flavor, NO_CHECK_SAME_USER))) { in proc_setcontrol()
3272 proc_lock(pself); in proc_setcontrol()
3274 pself->p_pcaction &= PROC_ACTION_MASK; in proc_setcontrol()
3276 pself->p_pcaction |= pcontrol; in proc_setcontrol()
3277 proc_unlock(pself); in proc_setcontrol()
3310 proc_lock(pself); in proc_setcontrol()
3312 pself->p_lflag |= P_LVMRSRCOWNER; in proc_setcontrol()
3313 proc_unlock(pself); in proc_setcontrol()
3321 OSBitOrAtomic(P_DELAYIDLESLEEP, &pself->p_flag); in proc_setcontrol()
3323 OSBitAndAtomic(~((uint32_t)P_DELAYIDLESLEEP), &pself->p_flag); in proc_setcontrol()
4130 struct proc * pself = PROC_NULL; in proc_set_dyld_images() local
4133 pself = current_proc(); in proc_set_dyld_images()
4134 if (pid != proc_getpid(pself)) { in proc_set_dyld_images()
4144 task = proc_task(pself); in proc_set_dyld_images()