Lines Matching defs:task

78 #include <linux/sched/task.h>
226 * Must be called holding task's alloc_lock to protect task's mems_allowed
371 * Per-vma policies are protected by mmap_lock. Allocations using per-task
372 * policies are protected by task->mems_allowed_seq to prevent a premature
387 * Wrapper for mpol_rebind_policy() that just requires task
388 * pointer, and updates task mempolicy.
390 * Called with task's alloc_lock held.
895 * Called with task's alloc_lock held
959 * Do NOT fall back to task policy if the
1239 * if !vma, alloc_page_vma() will use task or system default policy
1509 struct task_struct *task;
1532 task = pid ? find_task_by_vpid(pid) : current;
1533 if (!task) {
1538 get_task_struct(task);
1546 if (!ptrace_may_access(task, PTRACE_MODE_READ_REALCREDS)) {
1553 task_nodes = cpuset_mems_allowed(task);
1565 err = security_task_movememory(task);
1569 mm = get_task_mm(task);
1570 put_task_struct(task);
1587 put_task_struct(task);
1809 * freeing by another task. It is the caller's responsibility to free the
2036 * If the current task's mempolicy is "default" [NULL], return 'false'
2044 * because the current task is examining it's own mempolicy and a task's
2045 * mempolicy is only ever changed by the task itself.
2292 * current's mempolicy may be rebinded by the other task(the task that changes
2293 * cpuset's mems), so we needn't do rebind work for current task.
2304 /* task's mempolicy is protected by alloc_lock */
2526 * Drop the (possibly final) reference to task->mempolicy. It needs to be
2527 * dropped after task->mempolicy is set to NULL so that any allocation done as
2531 void mpol_put_task_policy(struct task_struct *task)
2535 task_lock(task);
2536 pol = task->mempolicy;
2537 task->mempolicy = NULL;
2538 task_unlock(task);
2651 * On entry, the current task has a reference on a non-NULL @mpol.