• Home
  • Raw
  • Download

Lines Matching refs:task_struct

557 extern void sched_exit(struct task_struct *p);
558 extern int sched_set_init_task_load(struct task_struct *p, int init_load_pct);
559 extern u32 sched_get_init_task_load(struct task_struct *p);
560 extern void free_task_load_ptrs(struct task_struct *p);
599 static inline void sched_exit(struct task_struct *p) { } in sched_exit()
600 static inline void free_task_load_ptrs(struct task_struct *p) { } in free_task_load_ptrs()
754 struct task_struct { struct
786 struct task_struct *last_wakee; argument
982 struct task_struct __rcu *real_parent; argument
985 struct task_struct __rcu *parent; argument
992 struct task_struct *group_leader; argument
1140 struct task_struct *pi_top_task; argument
1456 struct task_struct *oom_reaper_list; argument
1514 static inline struct pid *task_pid(struct task_struct *task) in task_pid()
1530 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, struct pid_namespace *ns);
1532 static inline pid_t task_pid_nr(struct task_struct *tsk) in task_pid_nr()
1537 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pid_nr_ns()
1542 static inline pid_t task_pid_vnr(struct task_struct *tsk) in task_pid_vnr()
1548 static inline pid_t task_tgid_nr(struct task_struct *tsk) in task_tgid_nr()
1563 static inline int pid_alive(const struct task_struct *p) in pid_alive()
1568 static inline pid_t task_pgrp_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pgrp_nr_ns()
1573 static inline pid_t task_pgrp_vnr(struct task_struct *tsk) in task_pgrp_vnr()
1579 static inline pid_t task_session_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_session_nr_ns()
1584 static inline pid_t task_session_vnr(struct task_struct *tsk) in task_session_vnr()
1589 static inline pid_t task_tgid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_tgid_nr_ns()
1594 static inline pid_t task_tgid_vnr(struct task_struct *tsk) in task_tgid_vnr()
1599 static inline pid_t task_ppid_nr_ns(const struct task_struct *tsk, struct pid_namespace *ns) in task_ppid_nr_ns()
1611 static inline pid_t task_ppid_nr(const struct task_struct *tsk) in task_ppid_nr()
1617 static inline pid_t task_pgrp_nr(struct task_struct *tsk) in task_pgrp_nr()
1625 static inline unsigned int task_state_index(struct task_struct *tsk) in task_state_index()
1647 static inline char task_state_to_char(struct task_struct *tsk) in task_state_to_char()
1661 static inline int is_global_init(struct task_struct *tsk) in is_global_init()
1750 static inline bool task_##func(struct task_struct *p) \
1754 static inline void task_set_##func(struct task_struct *p) \
1758 static inline void task_clear_##func(struct task_struct *p) \
1798 extern int task_can_attach(struct task_struct *p, const struct cpumask *cs_cpus_allowed);
1800 extern void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask);
1801 extern int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask);
1803 static inline void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask) in do_set_cpus_allowed()
1806 static inline int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask) in set_cpus_allowed_ptr()
1814 extern int yield_to(struct task_struct *p, bool preempt);
1815 extern void set_user_nice(struct task_struct *p, long nice);
1816 extern int task_prio(const struct task_struct *p);
1824 static inline int task_nice(const struct task_struct *p) in task_nice()
1829 extern int can_nice(const struct task_struct *p, const int nice);
1830 extern int task_curr(const struct task_struct *p);
1833 extern int sched_setscheduler(struct task_struct *, int, const struct sched_param *);
1834 extern int sched_setscheduler_nocheck(struct task_struct *, int, const struct sched_param *);
1835 extern void sched_set_fifo(struct task_struct *p);
1836 extern void sched_set_fifo_low(struct task_struct *p);
1837 extern void sched_set_normal(struct task_struct *p, int nice);
1838 extern int sched_setattr(struct task_struct *, const struct sched_attr *);
1839 extern int sched_setattr_nocheck(struct task_struct *, const struct sched_attr *);
1840 extern struct task_struct *idle_task(int cpu);
1848 static __always_inline bool is_idle_task(const struct task_struct *p) in is_idle_task()
1853 extern struct task_struct *curr_task(int cpu);
1854 extern void ia64_set_curr_task(int cpu, struct task_struct *p);
1860 struct task_struct task;
1875 static inline struct thread_info *task_thread_info(struct task_struct *task) in task_thread_info()
1894 extern struct task_struct *find_task_by_vpid(pid_t nr);
1895 extern struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns);
1900 extern struct task_struct *find_get_task_by_vpid(pid_t nr);
1902 extern int wake_up_state(struct task_struct *tsk, unsigned int state);
1903 extern int wake_up_process(struct task_struct *tsk);
1904 extern void wake_up_new_task(struct task_struct *tsk);
1907 extern void kick_process(struct task_struct *tsk);
1909 static inline void kick_process(struct task_struct *tsk) { } in kick_process()
1912 extern void __set_task_comm(struct task_struct *tsk, const char *from, bool exec);
1914 static inline void set_task_comm(struct task_struct *tsk, const char *from) in set_task_comm()
1919 extern char *__get_task_comm(char *to, size_t len, struct task_struct *tsk);
1935 extern unsigned long wait_task_inactive(struct task_struct *, long match_state);
1938 static inline unsigned long wait_task_inactive(struct task_struct *p, long match_state) in wait_task_inactive()
1948 static inline void set_tsk_thread_flag(struct task_struct *tsk, int flag) in set_tsk_thread_flag()
1953 static inline void clear_tsk_thread_flag(struct task_struct *tsk, int flag) in clear_tsk_thread_flag()
1958 static inline void update_tsk_thread_flag(struct task_struct *tsk, int flag, in update_tsk_thread_flag()
1964 static inline int test_and_set_tsk_thread_flag(struct task_struct *tsk, int flag) in test_and_set_tsk_thread_flag()
1969 static inline int test_and_clear_tsk_thread_flag(struct task_struct *tsk, int flag) in test_and_clear_tsk_thread_flag()
1974 static inline int test_tsk_thread_flag(struct task_struct *tsk, int flag) in test_tsk_thread_flag()
1979 static inline void set_tsk_need_resched(struct task_struct *tsk) in set_tsk_need_resched()
1984 static inline void clear_tsk_need_resched(struct task_struct *tsk) in clear_tsk_need_resched()
1989 static inline int test_tsk_need_resched(struct task_struct *tsk) in test_tsk_need_resched()
2051 static inline unsigned int task_cpu(const struct task_struct *p) in task_cpu()
2060 extern void set_task_cpu(struct task_struct *p, unsigned int cpu);
2064 static inline unsigned int task_cpu(const struct task_struct *p) in task_cpu()
2069 static inline void set_task_cpu(struct task_struct *p, unsigned int cpu) in set_task_cpu()
2115 static inline void rseq_set_notify_resume(struct task_struct *t) in rseq_set_notify_resume()
2140 static inline void rseq_preempt(struct task_struct *t) in rseq_preempt()
2147 static inline void rseq_migrate(struct task_struct *t) in rseq_migrate()
2157 static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags) in rseq_fork()
2170 static inline void rseq_execve(struct task_struct *t) in rseq_execve()
2179 static inline void rseq_set_notify_resume(struct task_struct *t) in rseq_set_notify_resume()
2190 static inline void rseq_preempt(struct task_struct *t) in rseq_preempt()
2193 static inline void rseq_migrate(struct task_struct *t) in rseq_migrate()
2196 static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags) in rseq_fork()
2199 static inline void rseq_execve(struct task_struct *t) in rseq_execve()