Lines Matching refs:task_struct

79 struct task_struct *pidfd_get_task(int pidfd, unsigned int *flags);
81 void do_notify_pidfd(struct task_struct *task);
91 extern struct task_struct *pid_task(struct pid *pid, enum pid_type);
96 extern struct task_struct *get_pid_task(struct pid *pid, enum pid_type);
98 extern struct pid *get_task_pid(struct task_struct *task, enum pid_type type);
103 extern void attach_pid(struct task_struct *task, enum pid_type);
104 extern void detach_pid(struct task_struct *task, enum pid_type);
105 extern void change_pid(struct task_struct *task, enum pid_type,
107 extern void exchange_tids(struct task_struct *task, struct task_struct *old);
108 extern void transfer_pid(struct task_struct *old, struct task_struct *new,
203 struct task_struct *tg___ = task; \
211 static inline struct pid *task_pid(struct task_struct *task) in task_pid()
227 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, struct pid_namespace *ns);
229 static inline pid_t task_pid_nr(struct task_struct *tsk) in task_pid_nr()
234 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pid_nr_ns()
239 static inline pid_t task_pid_vnr(struct task_struct *tsk) in task_pid_vnr()
245 static inline pid_t task_tgid_nr(struct task_struct *tsk) in task_tgid_nr()
260 static inline int pid_alive(const struct task_struct *p) in pid_alive()
265 static inline pid_t task_pgrp_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pgrp_nr_ns()
270 static inline pid_t task_pgrp_vnr(struct task_struct *tsk) in task_pgrp_vnr()
276 static inline pid_t task_session_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_session_nr_ns()
281 static inline pid_t task_session_vnr(struct task_struct *tsk) in task_session_vnr()
286 static inline pid_t task_tgid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_tgid_nr_ns()
291 static inline pid_t task_tgid_vnr(struct task_struct *tsk) in task_tgid_vnr()
296 static inline pid_t task_ppid_nr_ns(const struct task_struct *tsk, struct pid_namespace *ns) in task_ppid_nr_ns()
308 static inline pid_t task_ppid_nr(const struct task_struct *tsk) in task_ppid_nr()
314 static inline pid_t task_pgrp_nr(struct task_struct *tsk) in task_pgrp_nr()
328 static inline int is_global_init(struct task_struct *tsk) in is_global_init()