• Home
  • Raw
  • Download

Lines Matching refs:task

282 extern int dequeue_signal(struct task_struct *task,
287 struct task_struct *task = current; in kernel_dequeue_signal() local
291 spin_lock_irq(&task->sighand->siglock); in kernel_dequeue_signal()
292 ret = dequeue_signal(task, &task->blocked, &__info); in kernel_dequeue_signal()
293 spin_unlock_irq(&task->sighand->siglock); in kernel_dequeue_signal()
434 void task_join_group_stop(struct task_struct *task);
458 static inline void clear_tsk_restore_sigmask(struct task_struct *task) in clear_tsk_restore_sigmask() argument
460 clear_tsk_thread_flag(task, TIF_RESTORE_SIGMASK); in clear_tsk_restore_sigmask()
467 static inline bool test_tsk_restore_sigmask(struct task_struct *task) in test_tsk_restore_sigmask() argument
469 return test_tsk_thread_flag(task, TIF_RESTORE_SIGMASK); in test_tsk_restore_sigmask()
487 static inline void clear_tsk_restore_sigmask(struct task_struct *task) in clear_tsk_restore_sigmask() argument
489 task->restore_sigmask = false; in clear_tsk_restore_sigmask()
499 static inline bool test_tsk_restore_sigmask(struct task_struct *task) in test_tsk_restore_sigmask() argument
501 return task->restore_sigmask; in test_tsk_restore_sigmask()
640 struct pid *task_pid_type(struct task_struct *task, enum pid_type type) in task_pid_type() argument
644 pid = task_pid(task); in task_pid_type()
646 pid = task->signal->pids[type]; in task_pid_type()
650 static inline struct pid *task_tgid(struct task_struct *task) in task_tgid() argument
652 return task->signal->pids[PIDTYPE_TGID]; in task_tgid()
660 static inline struct pid *task_pgrp(struct task_struct *task) in task_pgrp() argument
662 return task->signal->pids[PIDTYPE_PGID]; in task_pgrp()
665 static inline struct pid *task_session(struct task_struct *task) in task_session() argument
667 return task->signal->pids[PIDTYPE_SID]; in task_session()
670 static inline int get_nr_threads(struct task_struct *task) in get_nr_threads() argument
672 return task->signal->nr_threads; in get_nr_threads()
702 extern struct sighand_struct *__lock_task_sighand(struct task_struct *task,
705 static inline struct sighand_struct *lock_task_sighand(struct task_struct *task, in lock_task_sighand() argument
710 ret = __lock_task_sighand(task, flags); in lock_task_sighand()
711 (void)__cond_lock(&task->sighand->siglock, ret); in lock_task_sighand()
715 static inline void unlock_task_sighand(struct task_struct *task, in unlock_task_sighand() argument
718 spin_unlock_irqrestore(&task->sighand->siglock, *flags); in unlock_task_sighand()
722 extern void lockdep_assert_task_sighand_held(struct task_struct *task);
724 static inline void lockdep_assert_task_sighand_held(struct task_struct *task) { } in lockdep_assert_task_sighand_held() argument
727 static inline unsigned long task_rlimit(const struct task_struct *task, in task_rlimit() argument
730 return READ_ONCE(task->signal->rlim[limit].rlim_cur); in task_rlimit()
733 static inline unsigned long task_rlimit_max(const struct task_struct *task, in task_rlimit_max() argument
736 return READ_ONCE(task->signal->rlim[limit].rlim_max); in task_rlimit_max()