Lines Matching refs:current

252 	WARN_ON(tsk == current);  in __put_task_struct()
614 if (current->mm) { in mm_init()
615 mm->flags = current->mm->flags & MMF_INIT_MASK; in mm_init()
616 mm->def_flags = current->mm->def_flags & VM_INIT_DEF_MASK; in mm_init()
673 return mm_init(mm, current); in mm_alloc()
802 if (mm && mm != current->mm && in mm_access()
915 struct mm_struct *mm, *oldmm = current->mm; in dup_mm()
967 oldmm = current->mm; in copy_mm()
996 struct fs_struct *fs = current->fs; in copy_fs()
1022 oldf = current->files; in copy_files()
1044 struct io_context *ioc = current->io_context; in copy_io()
1072 atomic_inc(&current->sighand->count); in copy_sighand()
1081 memcpy(sig->action, current->sighand->action, sizeof(sig->action)); in copy_sighand()
1146 task_lock(current->group_leader); in copy_signal()
1147 memcpy(sig->rlim, current->signal->rlim, sizeof sig->rlim); in copy_signal()
1148 task_unlock(current->group_leader); in copy_signal()
1155 sig->oom_score_adj = current->signal->oom_score_adj; in copy_signal()
1156 sig->oom_score_adj_min = current->signal->oom_score_adj_min; in copy_signal()
1158 sig->has_child_subreaper = current->signal->has_child_subreaper || in copy_signal()
1159 current->signal->is_child_subreaper; in copy_signal()
1175 assert_spin_locked(&current->sighand->siglock); in copy_seccomp()
1178 get_seccomp_filter(current); in copy_seccomp()
1179 p->seccomp = current->seccomp; in copy_seccomp()
1186 if (task_no_new_privs(current)) in copy_seccomp()
1201 current->clear_child_tid = tidptr; in SYSCALL_DEFINE1()
1203 return task_pid_vnr(current); in SYSCALL_DEFINE1()
1283 current->signal->flags & SIGNAL_UNKILLABLE) in copy_process()
1292 (task_active_pid_ns(current) != in copy_process()
1293 current->nsproxy->pid_ns_for_children)) in copy_process()
1302 p = dup_task_struct(current); in copy_process()
1321 current->flags &= ~PF_NPROC_EXCEEDED; in copy_process()
1361 p->default_timer_slack_ns = current->timer_slack_ns; in copy_process()
1372 threadgroup_change_begin(current); in copy_process()
1505 p->group_leader = current->group_leader; in copy_process()
1506 p->tgid = current->tgid; in copy_process()
1509 p->exit_signal = current->group_leader->exit_signal; in copy_process()
1542 p->real_parent = current->real_parent; in copy_process()
1543 p->parent_exec_id = current->parent_exec_id; in copy_process()
1545 p->real_parent = current; in copy_process()
1546 p->parent_exec_id = current->self_exec_id; in copy_process()
1549 spin_lock(&current->sighand->siglock); in copy_process()
1566 if (signal_pending(current)) { in copy_process()
1567 spin_unlock(&current->sighand->siglock); in copy_process()
1578 init_task_pid(p, PIDTYPE_PGID, task_pgrp(current)); in copy_process()
1579 init_task_pid(p, PIDTYPE_SID, task_session(current)); in copy_process()
1587 p->signal->tty = tty_kref_get(current->signal->tty); in copy_process()
1594 current->signal->nr_threads++; in copy_process()
1595 atomic_inc(&current->signal->live); in copy_process()
1596 atomic_inc(&current->signal->sigcnt); in copy_process()
1607 spin_unlock(&current->sighand->siglock); in copy_process()
1613 threadgroup_change_end(current); in copy_process()
1654 threadgroup_change_end(current); in copy_process()
1718 if (likely(!ptrace_event_enabled(current, trace))) in _do_fork()
1732 trace_sched_process_fork(current, p); in _do_fork()
1894 if (!thread_group_empty(current)) in check_unshare_flags()
1898 if (atomic_read(&current->sighand->count) > 1) in check_unshare_flags()
1914 struct fs_struct *fs = current->fs; in unshare_fs()
1935 struct files_struct *fd = current->files; in unshare_fd()
2016 exit_sem(current); in SYSCALL_DEFINE1()
2020 exit_shm(current); in SYSCALL_DEFINE1()
2021 shm_init_task(current); in SYSCALL_DEFINE1()
2025 switch_task_namespaces(current, new_nsproxy); in SYSCALL_DEFINE1()
2027 task_lock(current); in SYSCALL_DEFINE1()
2030 fs = current->fs; in SYSCALL_DEFINE1()
2032 current->fs = new_fs; in SYSCALL_DEFINE1()
2041 fd = current->files; in SYSCALL_DEFINE1()
2042 current->files = new_fd; in SYSCALL_DEFINE1()
2046 task_unlock(current); in SYSCALL_DEFINE1()
2078 struct task_struct *task = current; in unshare_files()