Lines Matching refs:intval
203 int intval, error = 0;
209 intval = proc_get_task_bg_policy(proc->task);
212 intval = proc_get_thread_bg_policy(proc->task, target_threadid);
214 error = copyout((int *)&intval, (user_addr_t)attrp, sizeof(int));
218 error = copyin((user_addr_t)attrp, (int *)&intval, sizeof(int));
221 if (intval > PROC_POLICY_BG_ALL) {
226 error = proc_set_bgtaskpolicy(proc->task, intval);
229 error = proc_set_bgthreadpolicy(proc->task, target_threadid, intval);
234 error = copyin((user_addr_t)attrp, (int *)&intval, sizeof(int));
237 if (intval > PROC_POLICY_BG_ALL) {
242 error = proc_add_bgtaskpolicy(proc->task, intval);
245 error = proc_add_bgthreadpolicy(proc->task, target_threadid, intval);
250 error = copyin((user_addr_t)attrp, (int *)&intval, sizeof(int));
253 if (intval > PROC_POLICY_BG_ALL) {
258 error = proc_remove_bgtaskpolicy(proc->task, intval);
261 error = proc_remove_bgthreadpolicy(proc->task, target_threadid, intval);