Lines Matching refs:task_struct
77 struct task_struct *pidfd_get_task(int pidfd, unsigned int *flags);
79 void do_notify_pidfd(struct task_struct *task);
89 extern struct task_struct *pid_task(struct pid *pid, enum pid_type);
94 extern struct task_struct *get_pid_task(struct pid *pid, enum pid_type);
96 extern struct pid *get_task_pid(struct task_struct *task, enum pid_type type);
101 extern void attach_pid(struct task_struct *task, enum pid_type);
102 extern void detach_pid(struct task_struct *task, enum pid_type);
103 extern void change_pid(struct task_struct *task, enum pid_type,
105 extern void exchange_tids(struct task_struct *task, struct task_struct *old);
106 extern void transfer_pid(struct task_struct *old, struct task_struct *new,
204 struct task_struct *tg___ = task; \
212 static inline struct pid *task_pid(struct task_struct *task) in task_pid()
228 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, struct pid_namespace *ns);
230 static inline pid_t task_pid_nr(struct task_struct *tsk) in task_pid_nr()
235 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pid_nr_ns()
240 static inline pid_t task_pid_vnr(struct task_struct *tsk) in task_pid_vnr()
246 static inline pid_t task_tgid_nr(struct task_struct *tsk) in task_tgid_nr()
261 static inline int pid_alive(const struct task_struct *p) in pid_alive()
266 static inline pid_t task_pgrp_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pgrp_nr_ns()
271 static inline pid_t task_pgrp_vnr(struct task_struct *tsk) in task_pgrp_vnr()
277 static inline pid_t task_session_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_session_nr_ns()
282 static inline pid_t task_session_vnr(struct task_struct *tsk) in task_session_vnr()
287 static inline pid_t task_tgid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_tgid_nr_ns()
292 static inline pid_t task_tgid_vnr(struct task_struct *tsk) in task_tgid_vnr()
297 static inline pid_t task_ppid_nr_ns(const struct task_struct *tsk, struct pid_namespace *ns) in task_ppid_nr_ns()
309 static inline pid_t task_ppid_nr(const struct task_struct *tsk) in task_ppid_nr()
315 static inline pid_t task_pgrp_nr(struct task_struct *tsk) in task_pgrp_nr()
329 static inline int is_global_init(struct task_struct *tsk) in is_global_init()