Lines Matching refs:current
252 WARN_ON(tsk == current); in __put_task_struct()
605 if (current->mm) { in mm_init()
606 mm->flags = current->mm->flags & MMF_INIT_MASK; in mm_init()
607 mm->def_flags = current->mm->def_flags & VM_INIT_DEF_MASK; in mm_init()
664 return mm_init(mm, current); in mm_alloc()
793 if (mm && mm != current->mm && in mm_access()
906 struct mm_struct *mm, *oldmm = current->mm; in dup_mm()
958 oldmm = current->mm; in copy_mm()
987 struct fs_struct *fs = current->fs; in copy_fs()
1013 oldf = current->files; in copy_files()
1035 struct io_context *ioc = current->io_context; in copy_io()
1063 atomic_inc(¤t->sighand->count); in copy_sighand()
1071 memcpy(sig->action, current->sighand->action, sizeof(sig->action)); in copy_sighand()
1138 task_lock(current->group_leader); in copy_signal()
1139 memcpy(sig->rlim, current->signal->rlim, sizeof sig->rlim); in copy_signal()
1140 task_unlock(current->group_leader); in copy_signal()
1151 sig->oom_score_adj = current->signal->oom_score_adj; in copy_signal()
1152 sig->oom_score_adj_min = current->signal->oom_score_adj_min; in copy_signal()
1154 sig->has_child_subreaper = current->signal->has_child_subreaper || in copy_signal()
1155 current->signal->is_child_subreaper; in copy_signal()
1171 assert_spin_locked(¤t->sighand->siglock); in copy_seccomp()
1174 get_seccomp_filter(current); in copy_seccomp()
1175 p->seccomp = current->seccomp; in copy_seccomp()
1182 if (task_no_new_privs(current)) in copy_seccomp()
1197 current->clear_child_tid = tidptr; in SYSCALL_DEFINE1()
1199 return task_pid_vnr(current); in SYSCALL_DEFINE1()
1277 current->signal->flags & SIGNAL_UNKILLABLE) in copy_process()
1287 (task_active_pid_ns(current) != in copy_process()
1288 current->nsproxy->pid_ns_for_children)) in copy_process()
1297 p = dup_task_struct(current); in copy_process()
1316 current->flags &= ~PF_NPROC_EXCEEDED; in copy_process()
1357 p->default_timer_slack_ns = current->timer_slack_ns; in copy_process()
1369 threadgroup_change_begin(current); in copy_process()
1499 p->group_leader = current->group_leader; in copy_process()
1500 p->tgid = current->tgid; in copy_process()
1503 p->exit_signal = current->group_leader->exit_signal; in copy_process()
1526 p->real_parent = current->real_parent; in copy_process()
1527 p->parent_exec_id = current->parent_exec_id; in copy_process()
1529 p->real_parent = current; in copy_process()
1530 p->parent_exec_id = current->self_exec_id; in copy_process()
1533 spin_lock(¤t->sighand->siglock); in copy_process()
1550 if (signal_pending(current)) { in copy_process()
1551 spin_unlock(¤t->sighand->siglock); in copy_process()
1562 init_task_pid(p, PIDTYPE_PGID, task_pgrp(current)); in copy_process()
1563 init_task_pid(p, PIDTYPE_SID, task_session(current)); in copy_process()
1571 p->signal->tty = tty_kref_get(current->signal->tty); in copy_process()
1578 current->signal->nr_threads++; in copy_process()
1579 atomic_inc(¤t->signal->live); in copy_process()
1580 atomic_inc(¤t->signal->sigcnt); in copy_process()
1591 spin_unlock(¤t->sighand->siglock); in copy_process()
1598 threadgroup_change_end(current); in copy_process()
1638 threadgroup_change_end(current); in copy_process()
1701 if (likely(!ptrace_event_enabled(current, trace))) in do_fork()
1715 trace_sched_process_fork(current, p); in do_fork()
1863 if (!thread_group_empty(current)) in check_unshare_flags()
1867 if (atomic_read(¤t->sighand->count) > 1) in check_unshare_flags()
1883 struct fs_struct *fs = current->fs; in unshare_fs()
1904 struct files_struct *fd = current->files; in unshare_fd()
1984 exit_sem(current); in SYSCALL_DEFINE1()
1988 exit_shm(current); in SYSCALL_DEFINE1()
1989 shm_init_task(current); in SYSCALL_DEFINE1()
1993 switch_task_namespaces(current, new_nsproxy); in SYSCALL_DEFINE1()
1995 task_lock(current); in SYSCALL_DEFINE1()
1998 fs = current->fs; in SYSCALL_DEFINE1()
2000 current->fs = new_fs; in SYSCALL_DEFINE1()
2009 fd = current->files; in SYSCALL_DEFINE1()
2010 current->files = new_fd; in SYSCALL_DEFINE1()
2014 task_unlock(current); in SYSCALL_DEFINE1()
2046 struct task_struct *task = current; in unshare_files()