Searched refs:task_struct (Results 1 - 200 of 1261) sorted by relevance

1234567

/linux-4.1.27/arch/parisc/include/asm/
H A Dswitch_to.h4 struct task_struct;
6 extern struct task_struct *_switch_to(struct task_struct *, struct task_struct *);
H A Dcurrent.h6 struct task_struct;
8 static inline struct task_struct * get_current(void) get_current()
H A Dsyscall.h11 static inline long syscall_get_nr(struct task_struct *tsk, syscall_get_nr()
17 static inline void syscall_get_arguments(struct task_struct *tsk, syscall_get_arguments()
H A Dmmu_context.h11 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) enter_lazy_tlb()
22 init_new_context(struct task_struct *tsk, struct mm_struct *mm) init_new_context()
52 static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, struct task_struct *tsk) switch_mm()
H A Dunwind.h55 struct task_struct *t;
70 void unwind_frame_init(struct unwind_frame_info *info, struct task_struct *t,
72 void unwind_frame_init_from_blocked_task(struct unwind_frame_info *info, struct task_struct *t);
/linux-4.1.27/arch/um/include/asm/
H A Dsysrq.h4 struct task_struct;
5 extern void show_trace(struct task_struct* task, unsigned long *stack);
H A Dptrace-generic.h31 struct task_struct;
33 extern long subarch_ptrace(struct task_struct *child, long request,
35 extern unsigned long getreg(struct task_struct *child, int regno);
36 extern int putreg(struct task_struct *child, int regno, unsigned long value);
38 extern int arch_copy_tls(struct task_struct *new);
39 extern void clear_flushed_tls(struct task_struct *task);
H A Dstacktrace.h18 get_frame_pointer(struct task_struct *task, struct pt_regs *segv_regs) get_frame_pointer()
26 get_frame_pointer(struct task_struct *task, struct pt_regs *segv_regs) get_frame_pointer()
33 *get_stack_pointer(struct task_struct *task, struct pt_regs *segv_regs) get_stack_pointer()
40 void dump_trace(struct task_struct *tsk, const struct stacktrace_ops *ops, void *data);
H A Dprocessor-generic.h11 struct task_struct;
27 struct task_struct *prev_sched;
57 static inline void release_thread(struct task_struct *task) release_thread()
61 extern unsigned long thread_saved_pc(struct task_struct *t);
105 extern unsigned long get_wchan(struct task_struct *p);
H A Dmmu_context.h51 struct task_struct *tsk) switch_mm()
64 struct task_struct *tsk) enter_lazy_tlb()
68 extern int init_new_context(struct task_struct *task, struct mm_struct *mm);
/linux-4.1.27/arch/alpha/include/asm/
H A Dswitch_to.h5 struct task_struct;
6 extern struct task_struct *alpha_switch_to(unsigned long, struct task_struct *);
H A Dprocessor.h43 struct task_struct;
44 extern unsigned long thread_saved_pc(struct task_struct *);
51 extern void release_thread(struct task_struct *);
53 unsigned long get_wchan(struct task_struct *p);
/linux-4.1.27/kernel/sched/
H A Dcpuacct.h3 extern void cpuacct_charge(struct task_struct *tsk, u64 cputime);
4 extern void cpuacct_account_field(struct task_struct *p, int index, u64 val);
8 static inline void cpuacct_charge(struct task_struct *tsk, u64 cputime) cpuacct_charge()
13 cpuacct_account_field(struct task_struct *p, int index, u64 val) cpuacct_account_field()
H A Dstop_task.c14 select_task_rq_stop(struct task_struct *p, int cpu, int sd_flag, int flags) select_task_rq_stop()
21 check_preempt_curr_stop(struct rq *rq, struct task_struct *p, int flags) check_preempt_curr_stop()
26 static struct task_struct * pick_next_task_stop()
27 pick_next_task_stop(struct rq *rq, struct task_struct *prev) pick_next_task_stop()
29 struct task_struct *stop = rq->stop; pick_next_task_stop()
42 enqueue_task_stop(struct rq *rq, struct task_struct *p, int flags) enqueue_task_stop()
48 dequeue_task_stop(struct rq *rq, struct task_struct *p, int flags) dequeue_task_stop()
58 static void put_prev_task_stop(struct rq *rq, struct task_struct *prev) put_prev_task_stop()
60 struct task_struct *curr = rq->curr; put_prev_task_stop()
77 static void task_tick_stop(struct rq *rq, struct task_struct *curr, int queued) task_tick_stop()
83 struct task_struct *stop = rq->stop; set_curr_task_stop()
88 static void switched_to_stop(struct rq *rq, struct task_struct *p) switched_to_stop()
94 prio_changed_stop(struct rq *rq, struct task_struct *p, int oldprio) prio_changed_stop()
100 get_rr_interval_stop(struct rq *rq, struct task_struct *task) get_rr_interval_stop()
H A Didle_task.c12 select_task_rq_idle(struct task_struct *p, int cpu, int sd_flag, int flags) select_task_rq_idle()
21 static void check_preempt_curr_idle(struct rq *rq, struct task_struct *p, int flags) check_preempt_curr_idle()
26 static struct task_struct * pick_next_task_idle()
27 pick_next_task_idle(struct rq *rq, struct task_struct *prev) pick_next_task_idle()
40 dequeue_task_idle(struct rq *rq, struct task_struct *p, int flags) dequeue_task_idle()
48 static void put_prev_task_idle(struct rq *rq, struct task_struct *prev) put_prev_task_idle()
54 static void task_tick_idle(struct rq *rq, struct task_struct *curr, int queued) task_tick_idle()
62 static void switched_to_idle(struct rq *rq, struct task_struct *p) switched_to_idle()
68 prio_changed_idle(struct rq *rq, struct task_struct *p, int oldprio) prio_changed_idle()
73 static unsigned int get_rr_interval_idle(struct rq *rq, struct task_struct *task) get_rr_interval_idle()
H A Dauto_group.h19 extern void autogroup_init(struct task_struct *init_task);
27 extern bool task_wants_autogroup(struct task_struct *p, struct task_group *tg);
30 autogroup_task_group(struct task_struct *p, struct task_group *tg) autogroup_task_group()
44 static inline void autogroup_init(struct task_struct *init_task) { } autogroup_free()
52 autogroup_task_group(struct task_struct *p, struct task_group *tg) autogroup_task_group()
H A Dauto_group.c16 void __init autogroup_init(struct task_struct *init_task) autogroup_init()
53 static inline struct autogroup *autogroup_task_get(struct task_struct *p) autogroup_task_get()
112 bool task_wants_autogroup(struct task_struct *p, struct task_group *tg) task_wants_autogroup()
128 autogroup_move_group(struct task_struct *p, struct autogroup *ag) autogroup_move_group()
131 struct task_struct *t; autogroup_move_group()
155 void sched_autogroup_create_attach(struct task_struct *p) sched_autogroup_create_attach()
166 void sched_autogroup_detach(struct task_struct *p) sched_autogroup_detach()
193 int proc_sched_autogroup_set_nice(struct task_struct *p, int nice) proc_sched_autogroup_set_nice()
227 void proc_sched_autogroup_show_task(struct task_struct *p, struct seq_file *m) proc_sched_autogroup_show_task()
H A Dcputime.c47 void irqtime_account_irq(struct task_struct *curr) irqtime_account_irq()
115 static inline void task_group_account_field(struct task_struct *p, int index, task_group_account_field()
135 void account_user_time(struct task_struct *p, cputime_t cputime, account_user_time()
160 static void account_guest_time(struct task_struct *p, cputime_t cputime, account_guest_time()
189 void __account_system_time(struct task_struct *p, cputime_t cputime, __account_system_time()
211 void account_system_time(struct task_struct *p, int hardirq_offset, account_system_time()
286 void thread_group_cputime(struct task_struct *tsk, struct task_cputime *times) thread_group_cputime()
290 struct task_struct *t; thread_group_cputime()
339 static void irqtime_account_process_tick(struct task_struct *p, int user_tick, irqtime_account_process_tick()
382 static inline void irqtime_account_process_tick(struct task_struct *p, int user_tick, irqtime_account_process_tick()
392 void vtime_common_task_switch(struct task_struct *prev) vtime_common_task_switch()
415 void vtime_common_account_irq_enter(struct task_struct *tsk) vtime_common_account_irq_enter()
442 void task_cputime_adjusted(struct task_struct *p, cputime_t *ut, cputime_t *st) task_cputime_adjusted()
448 void thread_group_cputime_adjusted(struct task_struct *p, cputime_t *ut, cputime_t *st) thread_group_cputime_adjusted()
463 void account_process_tick(struct task_struct *p, int user_tick) account_process_tick()
627 void task_cputime_adjusted(struct task_struct *p, cputime_t *ut, cputime_t *st) task_cputime_adjusted()
637 void thread_group_cputime_adjusted(struct task_struct *p, cputime_t *ut, cputime_t *st) thread_group_cputime_adjusted()
647 static unsigned long long vtime_delta(struct task_struct *tsk) vtime_delta()
658 static cputime_t get_vtime_delta(struct task_struct *tsk) get_vtime_delta()
669 static void __vtime_account_system(struct task_struct *tsk) __vtime_account_system()
676 void vtime_account_system(struct task_struct *tsk) vtime_account_system()
683 void vtime_gen_account_irq_exit(struct task_struct *tsk) vtime_gen_account_irq_exit()
692 void vtime_account_user(struct task_struct *tsk) vtime_account_user()
703 void vtime_user_enter(struct task_struct *tsk) vtime_user_enter()
711 void vtime_guest_enter(struct task_struct *tsk) vtime_guest_enter()
727 void vtime_guest_exit(struct task_struct *tsk) vtime_guest_exit()
736 void vtime_account_idle(struct task_struct *tsk) vtime_account_idle()
743 void arch_vtime_task_switch(struct task_struct *prev) arch_vtime_task_switch()
755 void vtime_init_idle(struct task_struct *t, int cpu) vtime_init_idle()
765 cputime_t task_gtime(struct task_struct *t) task_gtime()
783 * Fetch cputime raw values from fields of task_struct and
788 fetch_task_cputime(struct task_struct *t, fetch_task_cputime()
828 void task_cputime(struct task_struct *t, cputime_t *utime, cputime_t *stime) task_cputime()
840 void task_cputime_scaled(struct task_struct *t, task_cputime_scaled()
H A Dstats.h51 static inline void sched_info_reset_dequeued(struct task_struct *t) sched_info_reset_dequeued()
62 static inline void sched_info_dequeued(struct rq *rq, struct task_struct *t) sched_info_dequeued()
80 static void sched_info_arrive(struct rq *rq, struct task_struct *t) sched_info_arrive()
99 static inline void sched_info_queued(struct rq *rq, struct task_struct *t) sched_info_queued()
114 static inline void sched_info_depart(struct rq *rq, struct task_struct *t) sched_info_depart()
132 struct task_struct *prev, struct task_struct *next) __sched_info_switch()
147 struct task_struct *prev, struct task_struct *next) sched_info_switch()
172 static inline bool cputimer_running(struct task_struct *tsk) cputimer_running()
210 static inline void account_group_user_time(struct task_struct *tsk, account_group_user_time()
233 static inline void account_group_system_time(struct task_struct *tsk, account_group_system_time()
256 static inline void account_group_exec_runtime(struct task_struct *tsk, account_group_exec_runtime()
H A Dcpudeadline.h23 int cpudl_find(struct cpudl *cp, struct task_struct *p,
H A Dcpupri.h25 struct task_struct *p, struct cpumask *lowest_mask);
H A Dsched.h20 /* task_struct::on_rq states: */
96 static inline int task_has_rt_policy(struct task_struct *p) task_has_rt_policy()
101 static inline int task_has_dl_policy(struct task_struct *p) task_has_dl_policy()
136 void __dl_clear_params(struct task_struct *p);
324 extern void sched_move_task(struct task_struct *tsk);
603 struct task_struct *curr, *idle, *stop;
749 /* The regions in numa_faults array from task_struct */
756 extern void sched_setnuma(struct task_struct *p, int node);
757 extern int migrate_task_to(struct task_struct *p, int cpu);
758 extern int migrate_swap(struct task_struct *, struct task_struct *);
904 * holding both task_struct::pi_lock and rq::lock. sched_ttwu_pending()
906 static inline struct task_group *task_group(struct task_struct *p) task_group()
912 static inline void set_task_rq(struct task_struct *p, unsigned int cpu) set_task_rq()
931 static inline void set_task_rq(struct task_struct *p, unsigned int cpu) { } task_group()
932 static inline struct task_group *task_group(struct task_struct *p) task_group()
939 static inline void __set_task_cpu(struct task_struct *p, unsigned int cpu) __set_task_cpu()
1018 static inline int task_current(struct rq *rq, struct task_struct *p) task_current()
1023 static inline int task_running(struct rq *rq, struct task_struct *p) task_running()
1032 static inline int task_on_rq_queued(struct task_struct *p) task_on_rq_queued()
1037 static inline int task_on_rq_migrating(struct task_struct *p) task_on_rq_migrating()
1052 static inline void prepare_lock_switch(struct rq *rq, struct task_struct *next) prepare_lock_switch()
1064 static inline void finish_lock_switch(struct rq *rq, struct task_struct *prev) finish_lock_switch()
1166 void (*enqueue_task) (struct rq *rq, struct task_struct *p, int flags);
1167 void (*dequeue_task) (struct rq *rq, struct task_struct *p, int flags);
1169 bool (*yield_to_task) (struct rq *rq, struct task_struct *p, bool preempt);
1171 void (*check_preempt_curr) (struct rq *rq, struct task_struct *p, int flags);
1181 struct task_struct * (*pick_next_task) (struct rq *rq,
1182 struct task_struct *prev);
1183 void (*put_prev_task) (struct rq *rq, struct task_struct *p);
1186 int (*select_task_rq)(struct task_struct *p, int task_cpu, int sd_flag, int flags);
1187 void (*migrate_task_rq)(struct task_struct *p, int next_cpu);
1190 void (*task_waking) (struct task_struct *task);
1191 void (*task_woken) (struct rq *this_rq, struct task_struct *task);
1193 void (*set_cpus_allowed)(struct task_struct *p,
1201 void (*task_tick) (struct rq *rq, struct task_struct *p, int queued);
1202 void (*task_fork) (struct task_struct *p);
1203 void (*task_dead) (struct task_struct *p);
1210 void (*switched_from) (struct rq *this_rq, struct task_struct *task);
1211 void (*switched_to) (struct rq *this_rq, struct task_struct *task);
1212 void (*prio_changed) (struct rq *this_rq, struct task_struct *task,
1216 struct task_struct *task);
1221 void (*task_move_group) (struct task_struct *p, int on_rq);
1225 static inline void put_prev_task(struct rq *rq, struct task_struct *prev) put_prev_task()
1304 extern void init_task_runnable_average(struct task_struct *p);
1348 extern void activate_task(struct rq *rq, struct task_struct *p, int flags);
1349 extern void deactivate_task(struct rq *rq, struct task_struct *p, int flags);
1351 extern void check_preempt_curr(struct rq *rq, struct task_struct *p, int flags);
1415 static inline struct rq *__task_rq_lock(struct task_struct *p) sched_avg_update()
1437 static inline struct rq *task_rq_lock(struct task_struct *p, unsigned long *flags)
1480 task_rq_unlock(struct rq *rq, struct task_struct *p, unsigned long *flags)
/linux-4.1.27/include/linux/
H A Dvtime.h10 struct task_struct;
42 extern void vtime_task_switch(struct task_struct *prev); vtime_accounting_enabled()
44 extern void vtime_common_task_switch(struct task_struct *prev); vtime_task_switch()
45 static inline void vtime_task_switch(struct task_struct *prev) vtime_task_switch()
52 extern void vtime_account_system(struct task_struct *tsk);
53 extern void vtime_account_idle(struct task_struct *tsk);
54 extern void vtime_account_user(struct task_struct *tsk);
57 extern void vtime_account_irq_enter(struct task_struct *tsk);
59 extern void vtime_common_account_irq_enter(struct task_struct *tsk); vtime_account_irq_enter()
60 static inline void vtime_account_irq_enter(struct task_struct *tsk) vtime_account_irq_enter()
69 static inline void vtime_task_switch(struct task_struct *prev) { } vtime_account_system()
70 static inline void vtime_account_system(struct task_struct *tsk) { } vtime_account_user()
71 static inline void vtime_account_user(struct task_struct *tsk) { } vtime_account_irq_enter()
72 static inline void vtime_account_irq_enter(struct task_struct *tsk) { } vtime_account_irq_enter()
76 extern void arch_vtime_task_switch(struct task_struct *tsk); vtime_account_irq_enter()
77 extern void vtime_gen_account_irq_exit(struct task_struct *tsk); vtime_account_irq_enter()
79 static inline void vtime_account_irq_exit(struct task_struct *tsk) vtime_account_irq_exit()
85 extern void vtime_user_enter(struct task_struct *tsk);
87 static inline void vtime_user_exit(struct task_struct *tsk) vtime_user_exit()
91 extern void vtime_guest_enter(struct task_struct *tsk);
92 extern void vtime_guest_exit(struct task_struct *tsk);
93 extern void vtime_init_idle(struct task_struct *tsk, int cpu);
95 static inline void vtime_account_irq_exit(struct task_struct *tsk) vtime_account_irq_exit()
100 static inline void vtime_user_enter(struct task_struct *tsk) { } vtime_user_exit()
101 static inline void vtime_user_exit(struct task_struct *tsk) { } vtime_guest_enter()
102 static inline void vtime_guest_enter(struct task_struct *tsk) { } vtime_guest_exit()
103 static inline void vtime_guest_exit(struct task_struct *tsk) { } vtime_init_idle()
104 static inline void vtime_init_idle(struct task_struct *tsk, int cpu) { } vtime_init_idle()
108 extern void irqtime_account_irq(struct task_struct *tsk); vtime_init_idle()
110 static inline void irqtime_account_irq(struct task_struct *tsk) { } irqtime_account_irq()
113 static inline void account_irq_enter_time(struct task_struct *tsk) account_irq_enter_time()
119 static inline void account_irq_exit_time(struct task_struct *tsk) account_irq_exit_time()
H A Dresource.h7 struct task_struct;
9 int getrusage(struct task_struct *p, int who, struct rusage __user *ru);
10 int do_prlimit(struct task_struct *tsk, unsigned int resource,
H A Dcn_proc.h23 void proc_fork_connector(struct task_struct *task);
24 void proc_exec_connector(struct task_struct *task);
25 void proc_id_connector(struct task_struct *task, int which_id);
26 void proc_sid_connector(struct task_struct *task);
27 void proc_ptrace_connector(struct task_struct *task, int which_id);
28 void proc_comm_connector(struct task_struct *task);
29 void proc_coredump_connector(struct task_struct *task);
30 void proc_exit_connector(struct task_struct *task);
32 static inline void proc_fork_connector(struct task_struct *task) proc_fork_connector()
35 static inline void proc_exec_connector(struct task_struct *task) proc_exec_connector()
38 static inline void proc_id_connector(struct task_struct *task, proc_id_connector()
42 static inline void proc_sid_connector(struct task_struct *task) proc_sid_connector()
45 static inline void proc_comm_connector(struct task_struct *task) proc_comm_connector()
48 static inline void proc_ptrace_connector(struct task_struct *task, proc_ptrace_connector()
52 static inline void proc_coredump_connector(struct task_struct *task) proc_coredump_connector()
55 static inline void proc_exit_connector(struct task_struct *task) proc_exit_connector()
H A Dtsacct_kern.h15 struct taskstats *stats, struct task_struct *tsk);
19 struct taskstats *stats, struct task_struct *tsk) bacct_add_tsk()
24 extern void xacct_add_tsk(struct taskstats *stats, struct task_struct *p);
25 extern void acct_update_integrals(struct task_struct *tsk);
26 extern void acct_account_cputime(struct task_struct *tsk);
27 extern void acct_clear_integrals(struct task_struct *tsk);
29 static inline void xacct_add_tsk(struct taskstats *stats, struct task_struct *p) xacct_add_tsk()
31 static inline void acct_update_integrals(struct task_struct *tsk) acct_update_integrals()
33 static inline void acct_account_cputime(struct task_struct *tsk) acct_account_cputime()
35 static inline void acct_clear_integrals(struct task_struct *tsk) acct_clear_integrals()
H A Duser-return-notifier.h18 static inline void propagate_user_return_notify(struct task_struct *prev, propagate_user_return_notify()
19 struct task_struct *next) propagate_user_return_notify()
29 static inline void clear_user_return_notifier(struct task_struct *p) clear_user_return_notifier()
38 static inline void propagate_user_return_notify(struct task_struct *prev, propagate_user_return_notify()
39 struct task_struct *next) propagate_user_return_notify()
45 static inline void clear_user_return_notifier(struct task_struct *p) {}
H A Dlatencytop.h13 struct task_struct;
30 void __account_scheduler_latency(struct task_struct *task, int usecs, int inter);
32 account_scheduler_latency(struct task_struct *task, int usecs, int inter) account_scheduler_latency()
38 void clear_all_latency_tracing(struct task_struct *p);
43 account_scheduler_latency(struct task_struct *task, int usecs, int inter) account_scheduler_latency()
47 static inline void clear_all_latency_tracing(struct task_struct *p) clear_all_latency_tracing()
H A Dtask_work.h15 int task_work_add(struct task_struct *task, struct callback_head *twork, bool);
16 struct callback_head *task_work_cancel(struct task_struct *, task_work_func_t);
19 static inline void exit_task_work(struct task_struct *task) exit_task_work()
H A Ddelayacct.h36 extern void __delayacct_tsk_init(struct task_struct *);
37 extern void __delayacct_tsk_exit(struct task_struct *);
40 extern int __delayacct_add_tsk(struct taskstats *, struct task_struct *);
41 extern __u64 __delayacct_blkio_ticks(struct task_struct *);
45 static inline int delayacct_is_task_waiting_on_io(struct task_struct *p) delayacct_is_task_waiting_on_io()
65 static inline void delayacct_tsk_init(struct task_struct *tsk) delayacct_tsk_init()
76 static inline void delayacct_tsk_free(struct task_struct *tsk) delayacct_tsk_free()
98 struct task_struct *tsk) delayacct_add_tsk()
105 static inline __u64 delayacct_blkio_ticks(struct task_struct *tsk) delayacct_blkio_ticks()
131 static inline void delayacct_tsk_init(struct task_struct *tsk) delayacct_tsk_init()
133 static inline void delayacct_tsk_free(struct task_struct *tsk) delayacct_tsk_free()
140 struct task_struct *tsk) delayacct_add_tsk()
142 static inline __u64 delayacct_blkio_ticks(struct task_struct *tsk) delayacct_blkio_ticks()
144 static inline int delayacct_is_task_waiting_on_io(struct task_struct *p) delayacct_is_task_waiting_on_io()
H A Dsem.h9 struct task_struct;
32 extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk);
33 extern void exit_sem(struct task_struct *tsk);
41 static inline int copy_semundo(unsigned long clone_flags, struct task_struct *tsk) copy_semundo()
46 static inline void exit_sem(struct task_struct *tsk) exit_sem()
H A Doom.h13 struct task_struct;
45 static inline bool oom_task_origin(const struct task_struct *p) oom_task_origin()
50 extern void mark_tsk_oom_victim(struct task_struct *tsk);
54 extern unsigned long oom_badness(struct task_struct *p,
60 extern void oom_kill_process(struct task_struct *p, gfp_t gfp_mask, int order,
72 extern enum oom_scan_t oom_scan_process_thread(struct task_struct *task,
85 extern struct task_struct *find_lock_task_mm(struct task_struct *p);
87 static inline bool task_will_free_mem(struct task_struct *task) task_will_free_mem()
H A Dkthread.h8 struct task_struct *kthread_create_on_node(int (*threadfn)(void *data),
17 struct task_struct *kthread_create_on_cpu(int (*threadfn)(void *data),
33 struct task_struct *__k \
40 void kthread_bind(struct task_struct *k, unsigned int cpu);
41 int kthread_stop(struct task_struct *k);
45 void *kthread_data(struct task_struct *k);
46 void *probe_kthread_data(struct task_struct *k);
47 int kthread_park(struct task_struct *k);
48 void kthread_unpark(struct task_struct *k);
52 extern struct task_struct *kthreadd_task;
53 extern int tsk_fork_get_node(struct task_struct *tsk);
69 struct task_struct *task;
H A Ddebug_locks.h8 struct task_struct;
48 struct task_struct;
52 extern void debug_show_held_locks(struct task_struct *task);
60 static inline void debug_show_held_locks(struct task_struct *task) debug_show_held_locks()
H A Dsignalfd.h18 static inline void signalfd_notify(struct task_struct *tsk, int sig) signalfd_notify()
28 static inline void signalfd_notify(struct task_struct *tsk, int sig) { } signalfd_notify()
H A Dfutex.h8 struct task_struct;
15 handle_futex_death(u32 __user *uaddr, struct task_struct *curr, int pi);
56 extern void exit_robust_list(struct task_struct *curr);
57 extern void exit_pi_state_list(struct task_struct *curr);
64 static inline void exit_robust_list(struct task_struct *curr) exit_robust_list()
67 static inline void exit_pi_state_list(struct task_struct *curr) exit_pi_state_list()
H A Dcpuset.h44 extern void cpuset_cpus_allowed(struct task_struct *p, struct cpumask *mask);
45 extern void cpuset_cpus_allowed_fallback(struct task_struct *p);
46 extern nodemask_t cpuset_mems_allowed(struct task_struct *p);
63 extern int cpuset_mems_allowed_intersects(const struct task_struct *tsk1,
64 const struct task_struct *tsk2);
75 struct task_struct *task);
77 struct pid *pid, struct task_struct *tsk);
96 extern void cpuset_print_task_mems_allowed(struct task_struct *p);
146 static inline void cpuset_cpus_allowed(struct task_struct *p, cpuset_cpus_allowed()
152 static inline void cpuset_cpus_allowed_fallback(struct task_struct *p) cpuset_cpus_allowed_fallback()
156 static inline nodemask_t cpuset_mems_allowed(struct task_struct *p) cpuset_mems_allowed()
179 static inline int cpuset_mems_allowed_intersects(const struct task_struct *tsk1, cpuset_mems_allowed_intersects()
180 const struct task_struct *tsk2) cpuset_mems_allowed_intersects()
188 struct task_struct *task) cpuset_task_status_allowed()
222 static inline void cpuset_print_task_mems_allowed(struct task_struct *p) cpuset_print_task_mems_allowed()
H A Dsched.h186 extern void proc_sched_show_task(struct task_struct *p, struct seq_file *m);
187 extern void proc_sched_set_task(struct task_struct *p);
319 struct task_struct;
327 extern asmlinkage void schedule_tail(struct task_struct *prev);
328 extern void init_idle(struct task_struct *idle, int cpu);
329 extern void init_idle_bootup_task(struct task_struct *idle);
365 extern void show_stack(struct task_struct *task, unsigned long *sp);
372 extern void sched_show_task(struct task_struct *p);
620 struct task_struct *curr_target;
633 struct task_struct *group_exit_task;
1104 extern void prefetch_stack(struct task_struct *t);
1106 static inline void prefetch_stack(struct task_struct *t) { } prefetch_stack()
1293 struct task_struct { struct
1303 struct task_struct *last_wakee;
1406 struct task_struct __rcu *real_parent; /* real parent process */
1407 struct task_struct __rcu *parent; /* recipient of SIGCHLD, wait4() reports */
1413 struct task_struct *group_leader; /* threadgroup leader */
1730 /* Future-safe accessor for struct task_struct's cpus_allowed. */
1741 extern pid_t task_numa_group_id(struct task_struct *p);
1743 extern void task_numa_free(struct task_struct *p);
1744 extern bool should_numa_migrate_memory(struct task_struct *p, struct page *page,
1751 static inline pid_t task_numa_group_id(struct task_struct *p) task_numa_group_id()
1758 static inline void task_numa_free(struct task_struct *p) task_numa_free()
1761 static inline bool should_numa_migrate_memory(struct task_struct *p, should_numa_migrate_memory()
1768 static inline struct pid *task_pid(struct task_struct *task) task_pid()
1773 static inline struct pid *task_tgid(struct task_struct *task) task_tgid()
1783 static inline struct pid *task_pgrp(struct task_struct *task) task_pgrp()
1788 static inline struct pid *task_session(struct task_struct *task) task_session()
1808 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type,
1811 static inline pid_t task_pid_nr(struct task_struct *tsk) task_pid_nr()
1816 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, task_pid_nr_ns()
1822 static inline pid_t task_pid_vnr(struct task_struct *tsk) task_pid_vnr()
1828 static inline pid_t task_tgid_nr(struct task_struct *tsk) task_tgid_nr()
1833 pid_t task_tgid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns);
1835 static inline pid_t task_tgid_vnr(struct task_struct *tsk) task_tgid_vnr()
1841 static inline int pid_alive(const struct task_struct *p); task_ppid_nr_ns()
1842 static inline pid_t task_ppid_nr_ns(const struct task_struct *tsk, struct pid_namespace *ns) task_ppid_nr_ns()
1854 static inline pid_t task_ppid_nr(const struct task_struct *tsk) task_ppid_nr()
1859 static inline pid_t task_pgrp_nr_ns(struct task_struct *tsk, task_pgrp_nr_ns()
1865 static inline pid_t task_pgrp_vnr(struct task_struct *tsk) task_pgrp_vnr()
1871 static inline pid_t task_session_nr_ns(struct task_struct *tsk, task_session_nr_ns()
1877 static inline pid_t task_session_vnr(struct task_struct *tsk) task_session_vnr()
1883 static inline pid_t task_pgrp_nr(struct task_struct *tsk) task_pgrp_nr()
1898 static inline int pid_alive(const struct task_struct *p) pid_alive()
1911 static inline int is_global_init(struct task_struct *tsk) is_global_init()
1918 extern void free_task(struct task_struct *tsk);
1921 extern void __put_task_struct(struct task_struct *t);
1923 static inline void put_task_struct(struct task_struct *t) put_task_struct()
1930 extern void task_cputime(struct task_struct *t,
1932 extern void task_cputime_scaled(struct task_struct *t,
1934 extern cputime_t task_gtime(struct task_struct *t);
1936 static inline void task_cputime(struct task_struct *t, task_cputime()
1945 static inline void task_cputime_scaled(struct task_struct *t, task_cputime_scaled()
1955 static inline cputime_t task_gtime(struct task_struct *t) task_gtime()
1960 extern void task_cputime_adjusted(struct task_struct *p, cputime_t *ut, cputime_t *st);
1961 extern void thread_group_cputime_adjusted(struct task_struct *p, cputime_t *ut, cputime_t *st);
2048 static inline bool task_##func(struct task_struct *p) \
2051 static inline void task_set_##func(struct task_struct *p) \
2054 static inline void task_clear_##func(struct task_struct *p) \
2092 extern bool task_set_jobctl_pending(struct task_struct *task,
2094 extern void task_clear_jobctl_trapping(struct task_struct *task);
2095 extern void task_clear_jobctl_pending(struct task_struct *task,
2098 static inline void rcu_copy_process(struct task_struct *p) rcu_copy_process()
2113 static inline void tsk_restore_flags(struct task_struct *task, tsk_restore_flags()
2122 extern int task_can_attach(struct task_struct *p,
2125 extern void do_set_cpus_allowed(struct task_struct *p,
2128 extern int set_cpus_allowed_ptr(struct task_struct *p,
2131 static inline void do_set_cpus_allowed(struct task_struct *p, do_set_cpus_allowed()
2135 static inline int set_cpus_allowed_ptr(struct task_struct *p, set_cpus_allowed_ptr()
2153 static inline int set_cpus_allowed(struct task_struct *p, cpumask_t new_mask) set_cpus_allowed()
2221 task_sched_runtime(struct task_struct *task); disable_sched_clock_irqtime()
2253 extern void sched_autogroup_create_attach(struct task_struct *p); sched_can_stop_tick()
2254 extern void sched_autogroup_detach(struct task_struct *p); sched_can_stop_tick()
2258 extern void proc_sched_autogroup_show_task(struct task_struct *p, struct seq_file *m); sched_can_stop_tick()
2259 extern int proc_sched_autogroup_set_nice(struct task_struct *p, int nice); sched_can_stop_tick()
2262 static inline void sched_autogroup_create_attach(struct task_struct *p) { } sched_autogroup_detach()
2263 static inline void sched_autogroup_detach(struct task_struct *p) { } sched_autogroup_fork()
2268 extern int yield_to(struct task_struct *p, bool preempt); sched_autogroup_exit()
2269 extern void set_user_nice(struct task_struct *p, long nice); sched_autogroup_exit()
2270 extern int task_prio(const struct task_struct *p); sched_autogroup_exit()
2277 static inline int task_nice(const struct task_struct *p) task_nice()
2281 extern int can_nice(const struct task_struct *p, const int nice);
2282 extern int task_curr(const struct task_struct *p);
2284 extern int sched_setscheduler(struct task_struct *, int,
2286 extern int sched_setscheduler_nocheck(struct task_struct *, int,
2288 extern int sched_setattr(struct task_struct *,
2290 extern struct task_struct *idle_task(int cpu);
2297 static inline bool is_idle_task(const struct task_struct *p) is_idle_task()
2301 extern struct task_struct *curr_task(int cpu);
2302 extern void set_curr_task(int cpu, struct task_struct *p);
2322 extern struct task_struct init_task;
2339 extern struct task_struct *find_task_by_vpid(pid_t nr);
2340 extern struct task_struct *find_task_by_pid_ns(pid_t nr,
2356 extern int wake_up_state(struct task_struct *tsk, unsigned int state);
2357 extern int wake_up_process(struct task_struct *tsk);
2358 extern void wake_up_new_task(struct task_struct *tsk);
2360 extern void kick_process(struct task_struct *tsk);
2362 static inline void kick_process(struct task_struct *tsk) { } kick_process()
2364 extern int sched_fork(unsigned long clone_flags, struct task_struct *p); kick_process()
2365 extern void sched_dead(struct task_struct *p); kick_process()
2368 extern void flush_signals(struct task_struct *); kick_process()
2369 extern void __flush_signals(struct task_struct *); kick_process()
2370 extern void ignore_signals(struct task_struct *); kick_process()
2371 extern void flush_signal_handlers(struct task_struct *, int force_default); kick_process()
2372 extern int dequeue_signal(struct task_struct *tsk, sigset_t *mask, siginfo_t *info); kick_process()
2374 static inline int dequeue_signal_lock(struct task_struct *tsk, sigset_t *mask, siginfo_t *info) dequeue_signal_lock()
2389 extern void release_task(struct task_struct * p);
2390 extern int send_sig_info(int, struct siginfo *, struct task_struct *);
2391 extern int force_sigsegv(int, struct task_struct *);
2392 extern int force_sig_info(int, struct siginfo *, struct task_struct *);
2400 extern __must_check bool do_notify_parent(struct task_struct *, int);
2401 extern void __wake_up_parent(struct task_struct *p, struct task_struct *parent);
2402 extern void force_sig(int, struct task_struct *);
2403 extern int send_sig(int, struct task_struct *, int);
2404 extern int zap_other_threads(struct task_struct *p);
2407 extern int send_sigqueue(struct sigqueue *, struct task_struct *, int group);
2483 extern struct mm_struct *get_task_mm(struct task_struct *task);
2489 extern struct mm_struct *mm_access(struct task_struct *task, unsigned int mode);
2491 extern void mm_release(struct task_struct *, struct mm_struct *);
2494 struct task_struct *);
2498 extern void exit_files(struct task_struct *);
2514 struct task_struct *fork_idle(int);
2517 extern void __set_task_comm(struct task_struct *tsk, const char *from, bool exec); set_task_comm()
2518 static inline void set_task_comm(struct task_struct *tsk, const char *from) set_task_comm()
2522 extern char *get_task_comm(char *to, struct task_struct *tsk);
2526 extern unsigned long wait_task_inactive(struct task_struct *, long match_state);
2529 static inline unsigned long wait_task_inactive(struct task_struct *p, wait_task_inactive()
2537 list_entry_rcu((p)->tasks.next, struct task_struct, tasks)
2564 static inline int get_nr_threads(struct task_struct *tsk) get_nr_threads()
2569 static inline bool thread_group_leader(struct task_struct *p) thread_group_leader()
2580 static inline bool has_group_leader_pid(struct task_struct *p) has_group_leader_pid()
2586 bool same_thread_group(struct task_struct *p1, struct task_struct *p2) same_thread_group()
2591 static inline struct task_struct *next_thread(const struct task_struct *p) next_thread()
2594 struct task_struct, thread_group); next_thread()
2597 static inline int thread_group_empty(struct task_struct *p) thread_group_empty()
2615 static inline void task_lock(struct task_struct *p) task_lock()
2620 static inline void task_unlock(struct task_struct *p) task_unlock()
2625 extern struct sighand_struct *__lock_task_sighand(struct task_struct *tsk,
2628 static inline struct sighand_struct *lock_task_sighand(struct task_struct *tsk, lock_task_sighand()
2638 static inline void unlock_task_sighand(struct task_struct *tsk, unlock_task_sighand()
2645 static inline void threadgroup_change_begin(struct task_struct *tsk) threadgroup_change_begin()
2649 static inline void threadgroup_change_end(struct task_struct *tsk) threadgroup_change_end()
2670 static inline void threadgroup_lock(struct task_struct *tsk) threadgroup_lock()
2681 static inline void threadgroup_unlock(struct task_struct *tsk) threadgroup_unlock()
2686 static inline void threadgroup_change_begin(struct task_struct *tsk) {} threadgroup_change_end()
2687 static inline void threadgroup_change_end(struct task_struct *tsk) {} threadgroup_lock()
2688 static inline void threadgroup_lock(struct task_struct *tsk) {} threadgroup_unlock()
2689 static inline void threadgroup_unlock(struct task_struct *tsk) {} threadgroup_unlock()
2697 static inline void setup_thread_stack(struct task_struct *p, struct task_struct *org) setup_thread_stack()
2712 static inline unsigned long *end_of_stack(struct task_struct *p) end_of_stack()
2735 static inline unsigned long stack_not_used(struct task_struct *p) stack_not_used()
2746 extern void set_task_stack_end_magic(struct task_struct *tsk);
2751 static inline void set_tsk_thread_flag(struct task_struct *tsk, int flag) set_tsk_thread_flag()
2756 static inline void clear_tsk_thread_flag(struct task_struct *tsk, int flag) clear_tsk_thread_flag()
2761 static inline int test_and_set_tsk_thread_flag(struct task_struct *tsk, int flag) test_and_set_tsk_thread_flag()
2766 static inline int test_and_clear_tsk_thread_flag(struct task_struct *tsk, int flag) test_and_clear_tsk_thread_flag()
2771 static inline int test_tsk_thread_flag(struct task_struct *tsk, int flag) test_tsk_thread_flag()
2776 static inline void set_tsk_need_resched(struct task_struct *tsk) set_tsk_need_resched()
2781 static inline void clear_tsk_need_resched(struct task_struct *tsk) clear_tsk_need_resched()
2786 static inline int test_tsk_need_resched(struct task_struct *tsk) test_tsk_need_resched()
2797 static inline int signal_pending(struct task_struct *p) signal_pending()
2802 static inline int __fatal_signal_pending(struct task_struct *p) __fatal_signal_pending()
2807 static inline int fatal_signal_pending(struct task_struct *p) fatal_signal_pending()
2812 static inline int signal_pending_state(long state, struct task_struct *p) signal_pending_state()
2878 static inline int tsk_is_polling(struct task_struct *p) tsk_is_polling()
2920 static inline int tsk_is_polling(struct task_struct *p) { return 0; } __current_set_polling()
2957 void thread_group_cputime(struct task_struct *tsk, struct task_cputime *times);
2958 void thread_group_cputimer(struct task_struct *tsk, struct task_cputime *times);
2971 extern void recalc_sigpending_and_wake(struct task_struct *t);
2974 extern void signal_wake_up_state(struct task_struct *t, unsigned int state);
2976 static inline void signal_wake_up(struct task_struct *t, bool resume) signal_wake_up()
2980 static inline void ptrace_signal_wake_up(struct task_struct *t, bool resume) ptrace_signal_wake_up()
2990 static inline unsigned int task_cpu(const struct task_struct *p) task_cpu()
2995 static inline int task_node(const struct task_struct *p) task_node()
3000 extern void set_task_cpu(struct task_struct *p, unsigned int cpu);
3004 static inline unsigned int task_cpu(const struct task_struct *p) task_cpu()
3009 static inline void set_task_cpu(struct task_struct *p, unsigned int cpu) set_task_cpu()
3023 struct task_struct *tsk);
3026 static inline void add_rchar(struct task_struct *tsk, ssize_t amt) add_rchar()
3031 static inline void add_wchar(struct task_struct *tsk, ssize_t amt) add_wchar()
3036 static inline void inc_syscr(struct task_struct *tsk) inc_syscr()
3041 static inline void inc_syscw(struct task_struct *tsk) inc_syscw()
3046 static inline void add_rchar(struct task_struct *tsk, ssize_t amt) add_rchar()
3050 static inline void add_wchar(struct task_struct *tsk, ssize_t amt) add_wchar()
3054 static inline void inc_syscr(struct task_struct *tsk) inc_syscr()
3058 static inline void inc_syscw(struct task_struct *tsk) inc_syscw()
3075 static inline unsigned long task_rlimit(const struct task_struct *tsk, task_rlimit()
3081 static inline unsigned long task_rlimit_max(const struct task_struct *tsk, task_rlimit_max()
H A Dcontext_tracking.h17 extern void __context_tracking_task_switch(struct task_struct *prev,
18 struct task_struct *next);
54 static inline void context_tracking_task_switch(struct task_struct *prev, context_tracking_task_switch()
55 struct task_struct *next) context_tracking_task_switch()
65 static inline void context_tracking_task_switch(struct task_struct *prev, context_tracking_task_switch()
66 struct task_struct *next) { }
H A Dperf_regs.h13 u64 perf_reg_abi(struct task_struct *task);
28 static inline u64 perf_reg_abi(struct task_struct *task) perf_reg_abi()
H A Dposix-timers.h24 struct task_struct *task;
76 struct task_struct *it_process; /* for clock_nanosleep */
128 void run_posix_cpu_timers(struct task_struct *task);
129 void posix_cpu_timers_exit(struct task_struct *task);
130 void posix_cpu_timers_exit_group(struct task_struct *task);
132 bool posix_cpu_timers_can_stop_tick(struct task_struct *tsk);
134 void set_process_cpu_timer(struct task_struct *task, unsigned int clock_idx,
139 void update_rlimit_cpu(struct task_struct *task, unsigned long rlim_new);
H A Dtaskstats_kern.h24 extern void taskstats_exit(struct task_struct *, int group_dead);
27 static inline void taskstats_exit(struct task_struct *tsk, int group_dead) taskstats_exit()
H A Dptrace.h5 #include <linux/sched.h> /* For struct task_struct. */
44 extern long arch_ptrace(struct task_struct *child, long request,
46 extern int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst, int len);
47 extern int ptrace_writedata(struct task_struct *tsk, char __user *src, unsigned long dst, int len);
48 extern void ptrace_disable(struct task_struct *);
49 extern int ptrace_request(struct task_struct *child, long request,
52 extern void __ptrace_link(struct task_struct *child,
53 struct task_struct *new_parent);
54 extern void __ptrace_unlink(struct task_struct *child);
55 extern void exit_ptrace(struct task_struct *tracer, struct list_head *dead);
82 extern bool ptrace_may_access(struct task_struct *task, unsigned int mode);
84 static inline int ptrace_reparented(struct task_struct *child) ptrace_reparented()
89 static inline void ptrace_unlink(struct task_struct *child) ptrace_unlink()
95 int generic_ptrace_peekdata(struct task_struct *tsk, unsigned long addr,
97 int generic_ptrace_pokedata(struct task_struct *tsk, unsigned long addr,
104 * Returns %NULL if no one is tracing @task, or the &struct task_struct
111 static inline struct task_struct *ptrace_parent(struct task_struct *task) ptrace_parent()
127 static inline bool ptrace_event_enabled(struct task_struct *task, int event) ptrace_event_enabled()
195 static inline void ptrace_init_task(struct task_struct *child, bool ptrace) ptrace_init_task()
222 static inline void ptrace_release_task(struct task_struct *task) ptrace_release_task()
282 static inline void user_enable_single_step(struct task_struct *task) user_enable_single_step()
296 static inline void user_disable_single_step(struct task_struct *task) user_disable_single_step()
300 extern void user_enable_single_step(struct task_struct *);
301 extern void user_disable_single_step(struct task_struct *);
325 static inline void user_enable_block_step(struct task_struct *task) user_enable_block_step()
330 extern void user_enable_block_step(struct task_struct *);
334 extern void user_single_step_siginfo(struct task_struct *tsk,
337 static inline void user_single_step_siginfo(struct task_struct *tsk, user_single_step_siginfo()
404 extern int task_current_syscall(struct task_struct *target, long *callno,
H A Dseccomp.h86 extern void put_seccomp_filter(struct task_struct *tsk);
87 extern void get_seccomp_filter(struct task_struct *tsk);
89 static inline void put_seccomp_filter(struct task_struct *tsk) put_seccomp_filter()
93 static inline void get_seccomp_filter(struct task_struct *tsk) get_seccomp_filter()
H A Dshm.h23 struct task_struct *shm_creator;
56 void exit_shm(struct task_struct *task);
73 static inline void exit_shm(struct task_struct *task) exit_shm()
76 static inline void shm_init_task(struct task_struct *task) shm_init_task()
H A Dtask_io_accounting_ops.h19 static inline unsigned long task_io_get_inblock(const struct task_struct *p) task_io_get_inblock()
33 static inline unsigned long task_io_get_oublock(const struct task_struct *p) task_io_get_oublock()
62 static inline unsigned long task_io_get_inblock(const struct task_struct *p) task_io_get_inblock()
71 static inline unsigned long task_io_get_oublock(const struct task_struct *p) task_io_get_oublock()
H A Dpid.h30 * task_struct has a problem. When the user space process exits
31 * the now useless task_struct is still kept. A task_struct plus a
33 * this is THREAD_SIZE + sizeof(struct task_struct). By comparison
83 extern struct task_struct *pid_task(struct pid *pid, enum pid_type);
84 extern struct task_struct *get_pid_task(struct pid *pid, enum pid_type);
86 extern struct pid *get_task_pid(struct task_struct *task, enum pid_type type);
91 extern void attach_pid(struct task_struct *task, enum pid_type);
92 extern void detach_pid(struct task_struct *task, enum pid_type);
93 extern void change_pid(struct task_struct *task, enum pid_type,
95 extern void transfer_pid(struct task_struct *old, struct task_struct *new,
193 struct task_struct *tg___ = task; \
H A Dstacktrace.h6 struct task_struct;
19 extern void save_stack_trace_tsk(struct task_struct *tsk,
H A Dkernel_stat.h81 extern void account_user_time(struct task_struct *, cputime_t, cputime_t);
82 extern void account_system_time(struct task_struct *, int, cputime_t, cputime_t);
87 static inline void account_process_tick(struct task_struct *tsk, int user) account_process_tick()
92 extern void account_process_tick(struct task_struct *, int user);
H A Dproc_ns.h16 struct ns_common *(*get)(struct task_struct *task);
70 extern void *ns_get_path(struct path *path, struct task_struct *task,
73 extern int ns_get_name(char *buf, size_t size, struct task_struct *task,
H A Delfcore.h30 static inline int elf_core_copy_task_regs(struct task_struct *t, elf_gregset_t* elfregs) elf_core_copy_task_regs()
42 static inline int elf_core_copy_task_fpregs(struct task_struct *t, struct pt_regs *regs, elf_fpregset_t *fpu) elf_core_copy_task_fpregs()
52 static inline int elf_core_copy_task_xfpregs(struct task_struct *t, elf_fpxregset_t *xfpu) elf_core_copy_task_xfpregs()
H A Dfreezer.h24 static inline bool frozen(struct task_struct *p) frozen()
29 extern bool freezing_slow_path(struct task_struct *p);
34 static inline bool freezing(struct task_struct *p) freezing()
42 extern void __thaw_task(struct task_struct *t);
69 extern bool freeze_task(struct task_struct *p);
73 extern bool cgroup_freezing(struct task_struct *task);
75 static inline bool cgroup_freezing(struct task_struct *task) cgroup_freezing()
148 static inline bool freezer_should_skip(struct task_struct *p) freezer_should_skip()
260 static inline bool frozen(struct task_struct *p) { return false; } freezing()
261 static inline bool freezing(struct task_struct *p) { return false; } __thaw_task()
262 static inline void __thaw_task(struct task_struct *t) {} __thaw_task()
275 static inline int freezer_should_skip(struct task_struct *p) { return 0; } set_freezable()
H A Dioprio.h53 static inline int task_nice_ioprio(struct task_struct *task) task_nice_ioprio()
62 static inline int task_nice_ioclass(struct task_struct *task) task_nice_ioclass()
77 extern int set_task_ioprio(struct task_struct *task, int ioprio);
/linux-4.1.27/include/linux/sched/
H A Drt.h13 static inline int rt_task(struct task_struct *p) rt_task()
19 extern int rt_mutex_getprio(struct task_struct *p);
20 extern void rt_mutex_setprio(struct task_struct *p, int prio);
21 extern int rt_mutex_get_effective_prio(struct task_struct *task, int newprio);
22 extern struct task_struct *rt_mutex_get_top_task(struct task_struct *task);
23 extern void rt_mutex_adjust_pi(struct task_struct *p); tsk_is_pi_blocked()
24 static inline bool tsk_is_pi_blocked(struct task_struct *tsk) tsk_is_pi_blocked()
29 static inline int rt_mutex_getprio(struct task_struct *p) rt_mutex_getprio()
34 static inline int rt_mutex_get_effective_prio(struct task_struct *task, rt_mutex_get_effective_prio()
40 static inline struct task_struct *rt_mutex_get_top_task(struct task_struct *task) rt_mutex_get_top_task()
45 static inline bool tsk_is_pi_blocked(struct task_struct *tsk) tsk_is_pi_blocked()
H A Ddeadline.h19 static inline int dl_task(struct task_struct *p) dl_task()
/linux-4.1.27/arch/x86/include/asm/
H A Dcurrent.h8 struct task_struct;
10 DECLARE_PER_CPU(struct task_struct *, current_task);
12 static __always_inline struct task_struct *get_current(void) get_current()
H A Dswitch_to.h4 struct task_struct; /* one of the stranger aspects of C forward declarations */
5 __visible struct task_struct *__switch_to(struct task_struct *prev,
6 struct task_struct *next);
8 void __switch_to_xtra(struct task_struct *prev_p, struct task_struct *next_p,
20 , [task_canary] "i" (offsetof(struct task_struct, stack_canary))
96 , [task_canary] "i" (offsetof(struct task_struct, stack_canary))
123 [threadrsp] "i" (offsetof(struct task_struct, thread.sp)), \
126 [thread_info] "i" (offsetof(struct task_struct, stack)), \
H A Dproto.h20 long do_arch_prctl(struct task_struct *task, int code, unsigned long addr);
H A Dstacktrace.h46 void dump_trace(struct task_struct *tsk, struct pt_regs *regs,
60 stack_frame(struct task_struct *task, struct pt_regs *regs) stack_frame()
78 stack_frame(struct task_struct *task, struct pt_regs *regs) stack_frame()
85 show_trace_log_lvl(struct task_struct *task, struct pt_regs *regs,
89 show_stack_log_lvl(struct task_struct *task, struct pt_regs *regs,
H A Dsyscall.h31 static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs) syscall_get_nr()
36 static inline void syscall_rollback(struct task_struct *task, syscall_rollback()
42 static inline long syscall_get_error(struct task_struct *task, syscall_get_error()
61 static inline long syscall_get_return_value(struct task_struct *task, syscall_get_return_value()
67 static inline void syscall_set_return_value(struct task_struct *task, syscall_set_return_value()
76 static inline void syscall_get_arguments(struct task_struct *task, syscall_get_arguments()
85 static inline void syscall_set_arguments(struct task_struct *task, syscall_set_arguments()
101 static inline void syscall_get_arguments(struct task_struct *task, syscall_get_arguments()
162 static inline void syscall_set_arguments(struct task_struct *task, syscall_set_arguments()
H A Dfpu-internal.h45 DECLARE_PER_CPU(struct task_struct *, fpu_owner_task);
48 struct task_struct *tsk);
49 extern void convert_to_fxsr(struct task_struct *tsk,
87 static inline void task_disable_lazy_fpu_restore(struct task_struct *tsk) task_disable_lazy_fpu_restore()
92 static inline int fpu_lazy_restore(struct task_struct *new, unsigned int cpu) fpu_lazy_restore()
142 extern void __sanitize_i387_state(struct task_struct *);
144 static inline void sanitize_i387_state(struct task_struct *tsk) sanitize_i387_state()
303 static inline int __save_init_fpu(struct task_struct *tsk) __save_init_fpu()
318 static inline int restore_fpu_checking(struct task_struct *tsk) restore_fpu_checking()
341 static inline int __thread_has_fpu(struct task_struct *tsk) __thread_has_fpu()
347 static inline void __thread_clear_has_fpu(struct task_struct *tsk) __thread_clear_has_fpu()
354 static inline void __thread_set_has_fpu(struct task_struct *tsk) __thread_set_has_fpu()
367 static inline void __thread_fpu_end(struct task_struct *tsk) __thread_fpu_end()
374 static inline void __thread_fpu_begin(struct task_struct *tsk) __thread_fpu_begin()
381 static inline void drop_fpu(struct task_struct *tsk) drop_fpu()
413 static inline void fpu_reset_state(struct task_struct *tsk) fpu_reset_state()
435 static inline fpu_switch_t switch_fpu_prepare(struct task_struct *old, struct task_struct *new, int cpu) switch_fpu_prepare()
483 static inline void switch_fpu_finish(struct task_struct *new, fpu_switch_t fpu) switch_fpu_finish()
531 static inline void __save_fpu(struct task_struct *tsk) __save_fpu()
545 static inline unsigned short get_fpu_cwd(struct task_struct *tsk) get_fpu_cwd()
554 static inline unsigned short get_fpu_swd(struct task_struct *tsk) get_fpu_swd()
563 static inline unsigned short get_fpu_mxcsr(struct task_struct *tsk) get_fpu_mxcsr()
596 static inline void fpu_copy(struct task_struct *dst, struct task_struct *src) fpu_copy()
/linux-4.1.27/arch/avr32/include/asm/
H A Dcurrent.h6 struct task_struct;
8 inline static struct task_struct * get_current(void) get_current()
H A Dswitch_to.h35 struct task_struct;
36 extern struct task_struct *__switch_to(struct task_struct *,
/linux-4.1.27/arch/cris/include/asm/
H A Dcurrent.h6 struct task_struct;
8 static inline struct task_struct * get_current(void) get_current()
H A Dswitch_to.h8 extern struct task_struct *resume(struct task_struct *prev, struct task_struct *next, int);
10 (int)&((struct task_struct *)0)->thread)
H A Dmmu_context.h6 extern int init_new_context(struct task_struct *tsk, struct mm_struct *mm);
10 struct task_struct *tsk);
23 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) enter_lazy_tlb()
H A Dprocessor.h18 struct task_struct;
51 unsigned long get_wchan(struct task_struct *p);
55 extern unsigned long thread_saved_pc(struct task_struct *tsk);
58 static inline void release_thread(struct task_struct *dead_task) release_thread()
/linux-4.1.27/arch/m32r/include/asm/
H A Dcurrent.h6 struct task_struct;
8 static __inline__ struct task_struct *get_current(void) get_current()
H A Dptrace.h20 struct task_struct;
21 extern void init_debug_traps(struct task_struct *);
H A Dprocessor.h115 struct task_struct;
119 extern void release_thread(struct task_struct *);
122 extern void copy_segments(struct task_struct *p, struct mm_struct * mm);
125 extern unsigned long thread_saved_pc(struct task_struct *);
131 unsigned long get_wchan(struct task_struct *p);
/linux-4.1.27/arch/powerpc/include/asm/
H A Dswitch_to.h8 struct task_struct;
11 extern struct task_struct *__switch_to(struct task_struct *,
12 struct task_struct *);
16 extern struct task_struct *_switch(struct thread_struct *prev,
34 extern void __giveup_vsx(struct task_struct *); save_early_sprs()
35 extern void giveup_vsx(struct task_struct *); save_early_sprs()
37 extern void giveup_spe(struct task_struct *); save_early_sprs()
38 extern void load_up_spe(struct task_struct *); save_early_sprs()
50 extern void flush_fp_to_thread(struct task_struct *);
51 extern void giveup_fpu(struct task_struct *);
53 static inline void flush_fp_to_thread(struct task_struct *t) { } giveup_fpu()
54 static inline void giveup_fpu(struct task_struct *t) { } giveup_fpu()
58 extern void flush_altivec_to_thread(struct task_struct *); giveup_fpu()
59 extern void giveup_altivec(struct task_struct *); giveup_fpu()
62 static inline void flush_altivec_to_thread(struct task_struct *t) flush_altivec_to_thread()
65 static inline void giveup_altivec(struct task_struct *t) giveup_altivec()
71 extern void flush_vsx_to_thread(struct task_struct *);
73 static inline void flush_vsx_to_thread(struct task_struct *t) flush_vsx_to_thread()
79 extern void flush_spe_to_thread(struct task_struct *);
81 static inline void flush_spe_to_thread(struct task_struct *t) flush_spe_to_thread()
86 static inline void clear_task_ebb(struct task_struct *t) clear_task_ebb()
H A Dcurrent.h12 struct task_struct;
18 static inline struct task_struct *get_current(void) get_current()
20 struct task_struct *task; get_current()
35 register struct task_struct *current asm ("r2");
H A Dsyscall.h25 static inline long syscall_get_nr(struct task_struct *task, syscall_get_nr()
31 static inline void syscall_rollback(struct task_struct *task, syscall_rollback()
37 static inline long syscall_get_error(struct task_struct *task, syscall_get_error()
43 static inline long syscall_get_return_value(struct task_struct *task, syscall_get_return_value()
49 static inline void syscall_set_return_value(struct task_struct *task, syscall_set_return_value()
62 static inline void syscall_get_arguments(struct task_struct *task, syscall_get_arguments()
82 static inline void syscall_set_arguments(struct task_struct *task, syscall_set_arguments()
/linux-4.1.27/arch/parisc/kernel/
H A Dasm-offsets.c57 DEFINE(TASK_THREAD_INFO, offsetof(struct task_struct, stack)); main()
58 DEFINE(TASK_STATE, offsetof(struct task_struct, state)); main()
59 DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags)); main()
60 DEFINE(TASK_SIGPENDING, offsetof(struct task_struct, pending)); main()
61 DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace)); main()
62 DEFINE(TASK_MM, offsetof(struct task_struct, mm)); main()
63 DEFINE(TASK_PERSONALITY, offsetof(struct task_struct, personality)); main()
64 DEFINE(TASK_PID, offsetof(struct task_struct, pid)); main()
66 DEFINE(TASK_REGS, offsetof(struct task_struct, thread.regs)); main()
67 DEFINE(TASK_PT_PSW, offsetof(struct task_struct, thread.regs.gr[ 0])); main()
68 DEFINE(TASK_PT_GR1, offsetof(struct task_struct, thread.regs.gr[ 1])); main()
69 DEFINE(TASK_PT_GR2, offsetof(struct task_struct, thread.regs.gr[ 2])); main()
70 DEFINE(TASK_PT_GR3, offsetof(struct task_struct, thread.regs.gr[ 3])); main()
71 DEFINE(TASK_PT_GR4, offsetof(struct task_struct, thread.regs.gr[ 4])); main()
72 DEFINE(TASK_PT_GR5, offsetof(struct task_struct, thread.regs.gr[ 5])); main()
73 DEFINE(TASK_PT_GR6, offsetof(struct task_struct, thread.regs.gr[ 6])); main()
74 DEFINE(TASK_PT_GR7, offsetof(struct task_struct, thread.regs.gr[ 7])); main()
75 DEFINE(TASK_PT_GR8, offsetof(struct task_struct, thread.regs.gr[ 8])); main()
76 DEFINE(TASK_PT_GR9, offsetof(struct task_struct, thread.regs.gr[ 9])); main()
77 DEFINE(TASK_PT_GR10, offsetof(struct task_struct, thread.regs.gr[10])); main()
78 DEFINE(TASK_PT_GR11, offsetof(struct task_struct, thread.regs.gr[11])); main()
79 DEFINE(TASK_PT_GR12, offsetof(struct task_struct, thread.regs.gr[12])); main()
80 DEFINE(TASK_PT_GR13, offsetof(struct task_struct, thread.regs.gr[13])); main()
81 DEFINE(TASK_PT_GR14, offsetof(struct task_struct, thread.regs.gr[14])); main()
82 DEFINE(TASK_PT_GR15, offsetof(struct task_struct, thread.regs.gr[15])); main()
83 DEFINE(TASK_PT_GR16, offsetof(struct task_struct, thread.regs.gr[16])); main()
84 DEFINE(TASK_PT_GR17, offsetof(struct task_struct, thread.regs.gr[17])); main()
85 DEFINE(TASK_PT_GR18, offsetof(struct task_struct, thread.regs.gr[18])); main()
86 DEFINE(TASK_PT_GR19, offsetof(struct task_struct, thread.regs.gr[19])); main()
87 DEFINE(TASK_PT_GR20, offsetof(struct task_struct, thread.regs.gr[20])); main()
88 DEFINE(TASK_PT_GR21, offsetof(struct task_struct, thread.regs.gr[21])); main()
89 DEFINE(TASK_PT_GR22, offsetof(struct task_struct, thread.regs.gr[22])); main()
90 DEFINE(TASK_PT_GR23, offsetof(struct task_struct, thread.regs.gr[23])); main()
91 DEFINE(TASK_PT_GR24, offsetof(struct task_struct, thread.regs.gr[24])); main()
92 DEFINE(TASK_PT_GR25, offsetof(struct task_struct, thread.regs.gr[25])); main()
93 DEFINE(TASK_PT_GR26, offsetof(struct task_struct, thread.regs.gr[26])); main()
94 DEFINE(TASK_PT_GR27, offsetof(struct task_struct, thread.regs.gr[27])); main()
95 DEFINE(TASK_PT_GR28, offsetof(struct task_struct, thread.regs.gr[28])); main()
96 DEFINE(TASK_PT_GR29, offsetof(struct task_struct, thread.regs.gr[29])); main()
97 DEFINE(TASK_PT_GR30, offsetof(struct task_struct, thread.regs.gr[30])); main()
98 DEFINE(TASK_PT_GR31, offsetof(struct task_struct, thread.regs.gr[31])); main()
99 DEFINE(TASK_PT_FR0, offsetof(struct task_struct, thread.regs.fr[ 0])); main()
100 DEFINE(TASK_PT_FR1, offsetof(struct task_struct, thread.regs.fr[ 1])); main()
101 DEFINE(TASK_PT_FR2, offsetof(struct task_struct, thread.regs.fr[ 2])); main()
102 DEFINE(TASK_PT_FR3, offsetof(struct task_struct, thread.regs.fr[ 3])); main()
103 DEFINE(TASK_PT_FR4, offsetof(struct task_struct, thread.regs.fr[ 4])); main()
104 DEFINE(TASK_PT_FR5, offsetof(struct task_struct, thread.regs.fr[ 5])); main()
105 DEFINE(TASK_PT_FR6, offsetof(struct task_struct, thread.regs.fr[ 6])); main()
106 DEFINE(TASK_PT_FR7, offsetof(struct task_struct, thread.regs.fr[ 7])); main()
107 DEFINE(TASK_PT_FR8, offsetof(struct task_struct, thread.regs.fr[ 8])); main()
108 DEFINE(TASK_PT_FR9, offsetof(struct task_struct, thread.regs.fr[ 9])); main()
109 DEFINE(TASK_PT_FR10, offsetof(struct task_struct, thread.regs.fr[10])); main()
110 DEFINE(TASK_PT_FR11, offsetof(struct task_struct, thread.regs.fr[11])); main()
111 DEFINE(TASK_PT_FR12, offsetof(struct task_struct, thread.regs.fr[12])); main()
112 DEFINE(TASK_PT_FR13, offsetof(struct task_struct, thread.regs.fr[13])); main()
113 DEFINE(TASK_PT_FR14, offsetof(struct task_struct, thread.regs.fr[14])); main()
114 DEFINE(TASK_PT_FR15, offsetof(struct task_struct, thread.regs.fr[15])); main()
115 DEFINE(TASK_PT_FR16, offsetof(struct task_struct, thread.regs.fr[16])); main()
116 DEFINE(TASK_PT_FR17, offsetof(struct task_struct, thread.regs.fr[17])); main()
117 DEFINE(TASK_PT_FR18, offsetof(struct task_struct, thread.regs.fr[18])); main()
118 DEFINE(TASK_PT_FR19, offsetof(struct task_struct, thread.regs.fr[19])); main()
119 DEFINE(TASK_PT_FR20, offsetof(struct task_struct, thread.regs.fr[20])); main()
120 DEFINE(TASK_PT_FR21, offsetof(struct task_struct, thread.regs.fr[21])); main()
121 DEFINE(TASK_PT_FR22, offsetof(struct task_struct, thread.regs.fr[22])); main()
122 DEFINE(TASK_PT_FR23, offsetof(struct task_struct, thread.regs.fr[23])); main()
123 DEFINE(TASK_PT_FR24, offsetof(struct task_struct, thread.regs.fr[24])); main()
124 DEFINE(TASK_PT_FR25, offsetof(struct task_struct, thread.regs.fr[25])); main()
125 DEFINE(TASK_PT_FR26, offsetof(struct task_struct, thread.regs.fr[26])); main()
126 DEFINE(TASK_PT_FR27, offsetof(struct task_struct, thread.regs.fr[27])); main()
127 DEFINE(TASK_PT_FR28, offsetof(struct task_struct, thread.regs.fr[28])); main()
128 DEFINE(TASK_PT_FR29, offsetof(struct task_struct, thread.regs.fr[29])); main()
129 DEFINE(TASK_PT_FR30, offsetof(struct task_struct, thread.regs.fr[30])); main()
130 DEFINE(TASK_PT_FR31, offsetof(struct task_struct, thread.regs.fr[31])); main()
131 DEFINE(TASK_PT_SR0, offsetof(struct task_struct, thread.regs.sr[ 0])); main()
132 DEFINE(TASK_PT_SR1, offsetof(struct task_struct, thread.regs.sr[ 1])); main()
133 DEFINE(TASK_PT_SR2, offsetof(struct task_struct, thread.regs.sr[ 2])); main()
134 DEFINE(TASK_PT_SR3, offsetof(struct task_struct, thread.regs.sr[ 3])); main()
135 DEFINE(TASK_PT_SR4, offsetof(struct task_struct, thread.regs.sr[ 4])); main()
136 DEFINE(TASK_PT_SR5, offsetof(struct task_struct, thread.regs.sr[ 5])); main()
137 DEFINE(TASK_PT_SR6, offsetof(struct task_struct, thread.regs.sr[ 6])); main()
138 DEFINE(TASK_PT_SR7, offsetof(struct task_struct, thread.regs.sr[ 7])); main()
139 DEFINE(TASK_PT_IASQ0, offsetof(struct task_struct, thread.regs.iasq[0])); main()
140 DEFINE(TASK_PT_IASQ1, offsetof(struct task_struct, thread.regs.iasq[1])); main()
141 DEFINE(TASK_PT_IAOQ0, offsetof(struct task_struct, thread.regs.iaoq[0])); main()
142 DEFINE(TASK_PT_IAOQ1, offsetof(struct task_struct, thread.regs.iaoq[1])); main()
143 DEFINE(TASK_PT_CR27, offsetof(struct task_struct, thread.regs.cr27)); main()
144 DEFINE(TASK_PT_ORIG_R28, offsetof(struct task_struct, thread.regs.orig_r28)); main()
145 DEFINE(TASK_PT_KSP, offsetof(struct task_struct, thread.regs.ksp)); main()
146 DEFINE(TASK_PT_KPC, offsetof(struct task_struct, thread.regs.kpc)); main()
147 DEFINE(TASK_PT_SAR, offsetof(struct task_struct, thread.regs.sar)); main()
148 DEFINE(TASK_PT_IIR, offsetof(struct task_struct, thread.regs.iir)); main()
149 DEFINE(TASK_PT_ISR, offsetof(struct task_struct, thread.regs.isr)); main()
150 DEFINE(TASK_PT_IOR, offsetof(struct task_struct, thread.regs.ior)); main()
152 DEFINE(TASK_SZ, sizeof(struct task_struct)); main()
154 DEFINE(TASK_SZ_ALGN, align_frame(sizeof(struct task_struct), FRAME_ALIGN)); main()
/linux-4.1.27/arch/s390/include/asm/
H A Dcurrent.h14 struct task_struct;
16 #define current ((struct task_struct *const)S390_lowcore.current_task)
H A Dsyscall.h28 static inline long syscall_get_nr(struct task_struct *task, syscall_get_nr()
35 static inline void syscall_rollback(struct task_struct *task, syscall_rollback()
41 static inline long syscall_get_error(struct task_struct *task, syscall_get_error()
47 static inline long syscall_get_return_value(struct task_struct *task, syscall_get_return_value()
53 static inline void syscall_set_return_value(struct task_struct *task, syscall_set_return_value()
60 static inline void syscall_get_arguments(struct task_struct *task, syscall_get_arguments()
79 static inline void syscall_set_arguments(struct task_struct *task, syscall_set_arguments()
/linux-4.1.27/arch/xtensa/include/asm/
H A Dnommu_context.h5 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) enter_lazy_tlb()
9 static inline int init_new_context(struct task_struct *tsk,struct mm_struct *mm) init_new_context()
23 struct task_struct *tsk) switch_mm()
27 static inline void deactivate_mm(struct task_struct *tsk, struct mm_struct *mm) deactivate_mm()
H A Dcurrent.h18 struct task_struct;
20 static inline struct task_struct *get_current(void) get_current()
/linux-4.1.27/arch/m68k/include/asm/
H A Dcurrent.h6 register struct task_struct *current __asm__("%a2");
17 struct task_struct;
19 static inline struct task_struct *get_current(void) get_current()
/linux-4.1.27/kernel/
H A Dsmpboot.h4 struct task_struct;
7 struct task_struct *idle_thread_get(unsigned int cpu);
11 static inline struct task_struct *idle_thread_get(unsigned int cpu) { return NULL; } idle_thread_set_boot_cpu()
H A Dtsacct.c31 struct taskstats *stats, struct task_struct *tsk) bacct_add_tsk()
92 void xacct_add_tsk(struct taskstats *stats, struct task_struct *p) xacct_add_tsk()
123 static void __acct_update_integrals(struct task_struct *tsk, __acct_update_integrals()
150 * acct_update_integrals - update mm integral fields in task_struct
151 * @tsk: task_struct for accounting
153 void acct_update_integrals(struct task_struct *tsk) acct_update_integrals()
163 * @tsk: task_struct for accounting
165 void acct_account_cputime(struct task_struct *tsk) acct_account_cputime()
171 * acct_clear_integrals - clear the mm integral fields in task_struct
172 * @tsk: task_struct whose accounting fields are cleared
174 void acct_clear_integrals(struct task_struct *tsk) acct_clear_integrals()
H A Dworkqueue_internal.h37 struct task_struct *task; /* I: worker task */
71 void wq_worker_waking_up(struct task_struct *task, int cpu);
72 struct task_struct *wq_worker_sleeping(struct task_struct *task, int cpu);
H A Dexit.c62 static void exit_mm(struct task_struct *tsk);
64 static void __unhash_process(struct task_struct *p, bool group_dead) __unhash_process()
83 static void __exit_signal(struct task_struct *tsk) __exit_signal()
161 struct task_struct *tsk = container_of(rhp, struct task_struct, rcu); delayed_put_task_struct()
169 void release_task(struct task_struct *p) release_task()
171 struct task_struct *leader; release_task()
223 struct task_struct *ignored_task) will_become_orphaned_pgrp()
225 struct task_struct *p; will_become_orphaned_pgrp()
254 struct task_struct *p; has_stopped_jobs()
270 kill_orphaned_pgrp(struct task_struct *tsk, struct task_struct *parent) kill_orphaned_pgrp()
273 struct task_struct *ignored_task = tsk; kill_orphaned_pgrp()
301 struct task_struct *c, *g, *p = current; mm_update_next_owner()
387 static void exit_mm(struct task_struct *tsk) exit_mm()
442 static struct task_struct *find_alive_thread(struct task_struct *p) find_alive_thread()
444 struct task_struct *t; find_alive_thread()
453 static struct task_struct *find_child_reaper(struct task_struct *father)
458 struct task_struct *reaper = pid_ns->child_reaper;
487 static struct task_struct *find_new_reaper(struct task_struct *father, find_new_reaper()
488 struct task_struct *child_reaper) find_new_reaper()
490 struct task_struct *thread, *reaper; find_new_reaper()
522 static void reparent_leader(struct task_struct *father, struct task_struct *p, reparent_leader()
551 static void forget_original_parent(struct task_struct *father, forget_original_parent()
554 struct task_struct *p, *t, *reaper; forget_original_parent()
589 static void exit_notify(struct task_struct *tsk, int group_dead) exit_notify()
592 struct task_struct *p, *n; exit_notify()
655 struct task_struct *tsk = current; do_exit()
904 struct pid *task_pid_type(struct task_struct *task, enum pid_type type) task_pid_type()
911 static int eligible_pid(struct wait_opts *wo, struct task_struct *p) eligible_pid()
918 eligible_child(struct wait_opts *wo, bool ptrace, struct task_struct *p) eligible_child()
944 static int wait_noreap_copyout(struct wait_opts *wo, struct task_struct *p, wait_noreap_copyout()
978 static int wait_task_zombie(struct wait_opts *wo, struct task_struct *p) wait_task_zombie()
1029 * own task_struct. Those for dead threads in the group wait_task_zombie()
1127 static int *task_stopped_code(struct task_struct *p, bool ptrace) task_stopped_code()
1159 int ptrace, struct task_struct *p) wait_task_stopped()
1243 static int wait_task_continued(struct wait_opts *wo, struct task_struct *p) wait_task_continued()
1298 struct task_struct *p) wait_consider_task()
1423 static int do_wait_thread(struct wait_opts *wo, struct task_struct *tsk) do_wait_thread()
1425 struct task_struct *p; do_wait_thread()
1437 static int ptrace_do_wait(struct wait_opts *wo, struct task_struct *tsk) ptrace_do_wait()
1439 struct task_struct *p; ptrace_do_wait()
1456 struct task_struct *p = key; child_wait_callback()
1467 void __wake_up_parent(struct task_struct *p, struct task_struct *parent) __wake_up_parent()
1475 struct task_struct *tsk; do_wait()
H A Dpid.c389 void attach_pid(struct task_struct *task, enum pid_type type) attach_pid()
395 static void __change_pid(struct task_struct *task, enum pid_type type, __change_pid()
415 void detach_pid(struct task_struct *task, enum pid_type type) detach_pid()
420 void change_pid(struct task_struct *task, enum pid_type type, change_pid()
428 void transfer_pid(struct task_struct *old, struct task_struct *new, transfer_pid()
435 struct task_struct *pid_task(struct pid *pid, enum pid_type type) pid_task()
437 struct task_struct *result = NULL; pid_task()
443 result = hlist_entry(first, struct task_struct, pids[(type)].node); pid_task()
452 struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns) find_task_by_pid_ns()
460 struct task_struct *find_task_by_vpid(pid_t vnr) find_task_by_vpid()
465 struct pid *get_task_pid(struct task_struct *task, enum pid_type type) get_task_pid()
477 struct task_struct *get_pid_task(struct pid *pid, enum pid_type type) get_pid_task()
479 struct task_struct *result; get_pid_task()
521 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, __task_pid_nr_ns()
540 pid_t task_tgid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) task_tgid_nr_ns()
546 struct pid_namespace *task_active_pid_ns(struct task_struct *tsk) task_active_pid_ns()
/linux-4.1.27/arch/arc/include/asm/
H A Dswitch_to.h18 extern void fpu_save_restore(struct task_struct *p, struct task_struct *n);
29 struct task_struct *__switch_to(struct task_struct *p, struct task_struct *n);
H A Dsyscall.h18 syscall_get_nr(struct task_struct *task, struct pt_regs *regs) syscall_get_nr()
27 syscall_rollback(struct task_struct *task, struct pt_regs *regs) syscall_rollback()
33 syscall_get_error(struct task_struct *task, struct pt_regs *regs) syscall_get_error()
40 syscall_get_return_value(struct task_struct *task, struct pt_regs *regs) syscall_get_return_value()
46 syscall_set_return_value(struct task_struct *task, struct pt_regs *regs, syscall_set_return_value()
57 syscall_get_arguments(struct task_struct *task, struct pt_regs *regs, syscall_get_arguments()
H A Dbug.h16 struct task_struct;
19 void show_stacktrace(struct task_struct *tsk, struct pt_regs *regs);
H A Dcurrent.h19 register struct task_struct *curr_arc asm("r25");
/linux-4.1.27/include/asm-generic/
H A Dmmu_context.h11 struct task_struct;
15 struct task_struct *tsk) enter_lazy_tlb()
19 static inline int init_new_context(struct task_struct *tsk, init_new_context()
29 static inline void deactivate_mm(struct task_struct *task, deactivate_mm()
36 struct task_struct *tsk) switch_mm()
H A Dswitch_to.h22 extern struct task_struct *__switch_to(struct task_struct *,
23 struct task_struct *);
/linux-4.1.27/arch/score/include/asm/
H A Dptrace.h7 struct task_struct;
19 extern int read_tsk_long(struct task_struct *, unsigned long, unsigned long *);
20 extern int read_tsk_short(struct task_struct *, unsigned long,
H A Dmmu_context.h43 struct task_struct *tsk) enter_lazy_tlb()
66 init_new_context(struct task_struct *tsk, struct mm_struct *mm) init_new_context()
73 struct task_struct *tsk) switch_mm()
94 deactivate_mm(struct task_struct *task, struct mm_struct *mm) deactivate_mm()
/linux-4.1.27/arch/sh/include/asm/
H A Dswitch_to_64.h14 struct task_struct;
19 struct task_struct *sh64_switch_to(struct task_struct *prev,
21 struct task_struct *next,
H A Dfpu.h6 struct task_struct;
19 extern void save_fpu(struct task_struct *__tsk);
20 extern void restore_fpu(struct task_struct *__tsk);
35 extern int init_fpu(struct task_struct *);
37 extern int fpregs_get(struct task_struct *target,
42 static inline void __unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs) __unlazy_fpu()
52 static inline void unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs) unlazy_fpu()
59 static inline void clear_fpu(struct task_struct *tsk, struct pt_regs *regs) clear_fpu()
H A Dsyscall_64.h10 static inline long syscall_get_nr(struct task_struct *task, syscall_get_nr()
16 static inline void syscall_rollback(struct task_struct *task, syscall_rollback()
25 static inline long syscall_get_error(struct task_struct *task, syscall_get_error()
31 static inline long syscall_get_return_value(struct task_struct *task, syscall_get_return_value()
37 static inline void syscall_set_return_value(struct task_struct *task, syscall_set_return_value()
47 static inline void syscall_get_arguments(struct task_struct *task, syscall_get_arguments()
56 static inline void syscall_set_arguments(struct task_struct *task, syscall_set_arguments()
H A Dunwinder.h10 void (*dump)(struct task_struct *, struct pt_regs *,
17 extern void unwind_stack(struct task_struct *, struct pt_regs *,
21 extern void stack_reader_dump(struct task_struct *, struct pt_regs *,
H A Dsyscall_32.h11 static inline long syscall_get_nr(struct task_struct *task, syscall_get_nr()
17 static inline void syscall_rollback(struct task_struct *task, syscall_rollback()
26 static inline long syscall_get_error(struct task_struct *task, syscall_get_error()
32 static inline long syscall_get_return_value(struct task_struct *task, syscall_get_return_value()
38 static inline void syscall_set_return_value(struct task_struct *task, syscall_set_return_value()
48 static inline void syscall_get_arguments(struct task_struct *task, syscall_get_arguments()
76 static inline void syscall_set_arguments(struct task_struct *task, syscall_set_arguments()
H A Dalignment.h19 extern void unaligned_fixups_notify(struct task_struct *, insn_size_t, struct pt_regs *);
H A Dstacktrace.h18 void dump_trace(struct task_struct *tsk, struct pt_regs *regs,
/linux-4.1.27/arch/mips/kernel/
H A Dasm-offsets.c2 * offset.c: Calculate pt_regs and task_struct offsets.
78 COMMENT("MIPS task_struct offsets."); output_task_defines()
79 OFFSET(TASK_STATE, task_struct, state); output_task_defines()
80 OFFSET(TASK_THREAD_INFO, task_struct, stack); output_task_defines()
81 OFFSET(TASK_FLAGS, task_struct, flags); output_task_defines()
82 OFFSET(TASK_MM, task_struct, mm); output_task_defines()
83 OFFSET(TASK_PID, task_struct, pid); output_task_defines()
85 OFFSET(TASK_STACK_CANARY, task_struct, stack_canary); output_task_defines()
87 DEFINE(TASK_STRUCT_SIZE, sizeof(struct task_struct)); output_task_defines()
110 OFFSET(THREAD_REG16, task_struct, thread.reg16); output_thread_defines()
111 OFFSET(THREAD_REG17, task_struct, thread.reg17); output_thread_defines()
112 OFFSET(THREAD_REG18, task_struct, thread.reg18); output_thread_defines()
113 OFFSET(THREAD_REG19, task_struct, thread.reg19); output_thread_defines()
114 OFFSET(THREAD_REG20, task_struct, thread.reg20); output_thread_defines()
115 OFFSET(THREAD_REG21, task_struct, thread.reg21); output_thread_defines()
116 OFFSET(THREAD_REG22, task_struct, thread.reg22); output_thread_defines()
117 OFFSET(THREAD_REG23, task_struct, thread.reg23); output_thread_defines()
118 OFFSET(THREAD_REG29, task_struct, thread.reg29); output_thread_defines()
119 OFFSET(THREAD_REG30, task_struct, thread.reg30); output_thread_defines()
120 OFFSET(THREAD_REG31, task_struct, thread.reg31); output_thread_defines()
121 OFFSET(THREAD_STATUS, task_struct, output_thread_defines()
123 OFFSET(THREAD_FPU, task_struct, thread.fpu); output_thread_defines()
125 OFFSET(THREAD_BVADDR, task_struct, \ output_thread_defines()
127 OFFSET(THREAD_BUADDR, task_struct, \ output_thread_defines()
129 OFFSET(THREAD_ECODE, task_struct, \ output_thread_defines()
136 OFFSET(THREAD_FPR0, task_struct, thread.fpu.fpr[0]); output_thread_fpu_defines()
137 OFFSET(THREAD_FPR1, task_struct, thread.fpu.fpr[1]); output_thread_fpu_defines()
138 OFFSET(THREAD_FPR2, task_struct, thread.fpu.fpr[2]); output_thread_fpu_defines()
139 OFFSET(THREAD_FPR3, task_struct, thread.fpu.fpr[3]); output_thread_fpu_defines()
140 OFFSET(THREAD_FPR4, task_struct, thread.fpu.fpr[4]); output_thread_fpu_defines()
141 OFFSET(THREAD_FPR5, task_struct, thread.fpu.fpr[5]); output_thread_fpu_defines()
142 OFFSET(THREAD_FPR6, task_struct, thread.fpu.fpr[6]); output_thread_fpu_defines()
143 OFFSET(THREAD_FPR7, task_struct, thread.fpu.fpr[7]); output_thread_fpu_defines()
144 OFFSET(THREAD_FPR8, task_struct, thread.fpu.fpr[8]); output_thread_fpu_defines()
145 OFFSET(THREAD_FPR9, task_struct, thread.fpu.fpr[9]); output_thread_fpu_defines()
146 OFFSET(THREAD_FPR10, task_struct, thread.fpu.fpr[10]); output_thread_fpu_defines()
147 OFFSET(THREAD_FPR11, task_struct, thread.fpu.fpr[11]); output_thread_fpu_defines()
148 OFFSET(THREAD_FPR12, task_struct, thread.fpu.fpr[12]); output_thread_fpu_defines()
149 OFFSET(THREAD_FPR13, task_struct, thread.fpu.fpr[13]); output_thread_fpu_defines()
150 OFFSET(THREAD_FPR14, task_struct, thread.fpu.fpr[14]); output_thread_fpu_defines()
151 OFFSET(THREAD_FPR15, task_struct, thread.fpu.fpr[15]); output_thread_fpu_defines()
152 OFFSET(THREAD_FPR16, task_struct, thread.fpu.fpr[16]); output_thread_fpu_defines()
153 OFFSET(THREAD_FPR17, task_struct, thread.fpu.fpr[17]); output_thread_fpu_defines()
154 OFFSET(THREAD_FPR18, task_struct, thread.fpu.fpr[18]); output_thread_fpu_defines()
155 OFFSET(THREAD_FPR19, task_struct, thread.fpu.fpr[19]); output_thread_fpu_defines()
156 OFFSET(THREAD_FPR20, task_struct, thread.fpu.fpr[20]); output_thread_fpu_defines()
157 OFFSET(THREAD_FPR21, task_struct, thread.fpu.fpr[21]); output_thread_fpu_defines()
158 OFFSET(THREAD_FPR22, task_struct, thread.fpu.fpr[22]); output_thread_fpu_defines()
159 OFFSET(THREAD_FPR23, task_struct, thread.fpu.fpr[23]); output_thread_fpu_defines()
160 OFFSET(THREAD_FPR24, task_struct, thread.fpu.fpr[24]); output_thread_fpu_defines()
161 OFFSET(THREAD_FPR25, task_struct, thread.fpu.fpr[25]); output_thread_fpu_defines()
162 OFFSET(THREAD_FPR26, task_struct, thread.fpu.fpr[26]); output_thread_fpu_defines()
163 OFFSET(THREAD_FPR27, task_struct, thread.fpu.fpr[27]); output_thread_fpu_defines()
164 OFFSET(THREAD_FPR28, task_struct, thread.fpu.fpr[28]); output_thread_fpu_defines()
165 OFFSET(THREAD_FPR29, task_struct, thread.fpu.fpr[29]); output_thread_fpu_defines()
166 OFFSET(THREAD_FPR30, task_struct, thread.fpu.fpr[30]); output_thread_fpu_defines()
167 OFFSET(THREAD_FPR31, task_struct, thread.fpu.fpr[31]); output_thread_fpu_defines()
169 OFFSET(THREAD_FCR31, task_struct, thread.fpu.fcr31); output_thread_fpu_defines()
170 OFFSET(THREAD_MSA_CSR, task_struct, thread.fpu.msacsr); output_thread_fpu_defines()
319 OFFSET(THREAD_CP2, task_struct, thread.cp2); output_octeon_cop2_state_defines()
320 OFFSET(THREAD_CVMSEG, task_struct, thread.cvmseg.cvmseg); output_octeon_cop2_state_defines()
/linux-4.1.27/arch/tile/include/asm/
H A Dswitch_to.h31 struct task_struct;
37 void _prepare_arch_switch(struct task_struct *next);
39 struct task_struct;
41 extern struct task_struct *_switch_to(struct task_struct *prev,
42 struct task_struct *next);
45 extern struct task_struct *__switch_to(struct task_struct *prev,
46 struct task_struct *next,
75 struct task_struct *sim_notify_fork(struct task_struct *prev);
H A Dcurrent.h20 struct task_struct;
22 static inline struct task_struct *get_current(void) get_current()
28 /* Return a usable "task_struct" pointer even if the real one is corrupt. */
29 struct task_struct *validate_current(void);
H A Dsyscall.h36 static inline int syscall_get_nr(struct task_struct *t, struct pt_regs *regs) syscall_get_nr()
41 static inline void syscall_rollback(struct task_struct *task, syscall_rollback()
47 static inline long syscall_get_error(struct task_struct *task, syscall_get_error()
54 static inline long syscall_get_return_value(struct task_struct *task, syscall_get_return_value()
60 static inline void syscall_set_return_value(struct task_struct *task, syscall_set_return_value()
67 static inline void syscall_get_arguments(struct task_struct *task, syscall_get_arguments()
76 static inline void syscall_set_arguments(struct task_struct *task, syscall_set_arguments()
H A Dsetup.h40 struct task_struct;
41 void hardwall_switch_tasks(struct task_struct *prev, struct task_struct *next);
42 void hardwall_deactivate_all(struct task_struct *task);
/linux-4.1.27/arch/x86/um/
H A Dtls_64.c3 void clear_flushed_tls(struct task_struct *task) clear_flushed_tls()
7 int arch_copy_tls(struct task_struct *t) arch_copy_tls()
H A Dptrace_32.c11 extern int arch_switch_tls(struct task_struct *to);
13 void arch_switch_to(struct task_struct *to) arch_switch_to()
72 int putreg(struct task_struct *child, int regno, unsigned long value) putreg()
120 int poke_user(struct task_struct *child, long addr, long data) poke_user()
139 unsigned long getreg(struct task_struct *child, int regno) getreg()
173 int peek_user(struct task_struct *child, long addr, long data) peek_user()
193 static int get_fpregs(struct user_i387_struct __user *buf, struct task_struct *child) get_fpregs()
209 static int set_fpregs(struct user_i387_struct __user *buf, struct task_struct *child) set_fpregs()
222 static int get_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child) get_fpxregs()
238 static int set_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child) set_fpxregs()
251 long subarch_ptrace(struct task_struct *child, long request, subarch_ptrace()
/linux-4.1.27/arch/mips/include/asm/
H A Dcmp.h7 struct task_struct;
11 extern void cmp_boot_secondary(int cpu, struct task_struct *t);
H A Dptrace.h48 struct task_struct;
50 extern int ptrace_getregs(struct task_struct *child,
52 extern int ptrace_setregs(struct task_struct *child,
55 extern int ptrace_getfpregs(struct task_struct *child, __u32 __user *data);
56 extern int ptrace_setfpregs(struct task_struct *child, __u32 __user *data);
58 extern int ptrace_get_watch_regs(struct task_struct *child,
60 extern int ptrace_set_watch_regs(struct task_struct *child,
H A Dsyscall.h29 static inline long syscall_get_nr(struct task_struct *task, syscall_get_nr()
36 struct task_struct *task, struct pt_regs *regs, unsigned int n) mips_get_syscall_arg()
70 static inline long syscall_get_return_value(struct task_struct *task, syscall_get_return_value()
76 static inline void syscall_rollback(struct task_struct *task, syscall_rollback()
82 static inline void syscall_set_return_value(struct task_struct *task, syscall_set_return_value()
95 static inline void syscall_get_arguments(struct task_struct *task, syscall_get_arguments()
H A Dstacktrace.h8 extern unsigned long unwind_stack(struct task_struct *task, unsigned long *sp,
16 static inline unsigned long unwind_stack(struct task_struct *task, unwind_stack()
H A Dswitch_to.h21 struct task_struct;
39 extern asmlinkage struct task_struct *resume(struct task_struct *prev,
40 struct task_struct *next, struct thread_info *next_ti,
44 extern struct task_struct *ll_task;
/linux-4.1.27/arch/powerpc/kernel/
H A Dsignal.h25 struct task_struct *task);
27 struct task_struct *task);
28 extern unsigned long copy_fpr_from_user(struct task_struct *task,
30 extern unsigned long copy_transact_fpr_from_user(struct task_struct *task,
34 struct task_struct *task);
36 struct task_struct *task);
37 extern unsigned long copy_vsx_from_user(struct task_struct *task,
39 extern unsigned long copy_transact_vsx_from_user(struct task_struct *task,
H A Dstacktrace.c23 struct task_struct *tsk, int savesched) save_context_stack()
59 void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) save_stack_trace_tsk()
/linux-4.1.27/arch/ia64/include/asm/
H A Dsyscall.h20 static inline long syscall_get_nr(struct task_struct *task, syscall_get_nr()
29 static inline void syscall_rollback(struct task_struct *task, syscall_rollback()
35 static inline long syscall_get_error(struct task_struct *task, syscall_get_error()
41 static inline long syscall_get_return_value(struct task_struct *task, syscall_get_return_value()
47 static inline void syscall_set_return_value(struct task_struct *task, syscall_set_return_value()
61 extern void ia64_syscall_get_set_arguments(struct task_struct *task,
64 static inline void syscall_get_arguments(struct task_struct *task, syscall_get_arguments()
74 static inline void syscall_set_arguments(struct task_struct *task, syscall_set_arguments()
H A Dperfmon.h17 extern void pfm_save_regs (struct task_struct *);
18 extern void pfm_load_regs (struct task_struct *);
20 extern void pfm_exit_thread(struct task_struct *);
21 extern int pfm_use_debug_registers(struct task_struct *);
22 extern int pfm_release_debug_registers(struct task_struct *);
23 extern void pfm_syst_wide_update_task(struct task_struct *, unsigned long info, int is_ctxswin);
24 extern void pfm_inherit(struct task_struct *task, struct pt_regs *regs);
69 int (*fmt_validate)(struct task_struct *task, unsigned int flags, int cpu, void *arg);
70 int (*fmt_getsize)(struct task_struct *task, unsigned int flags, int cpu, void *arg, unsigned long *size);
71 int (*fmt_init)(struct task_struct *task, void *buf, unsigned int flags, int cpu, void *arg);
72 int (*fmt_handler)(struct task_struct *task, void *buf, pfm_ovfl_arg_t *arg, struct pt_regs *regs, unsigned long stamp);
73 int (*fmt_restart)(struct task_struct *task, pfm_ovfl_ctrl_t *ctrl, void *buf, struct pt_regs *regs);
74 int (*fmt_restart_active)(struct task_struct *task, pfm_ovfl_ctrl_t *ctrl, void *buf, struct pt_regs *regs);
75 int (*fmt_exit)(struct task_struct *task, void *buf, struct pt_regs *regs);
86 extern int pfm_mod_read_pmds(struct task_struct *, void *req, unsigned int nreq, struct pt_regs *regs);
87 extern int pfm_mod_write_pmcs(struct task_struct *, void *req, unsigned int nreq, struct pt_regs *regs);
88 extern int pfm_mod_write_ibrs(struct task_struct *task, void *req, unsigned int nreq, struct pt_regs *regs);
89 extern int pfm_mod_write_dbrs(struct task_struct *task, void *req, unsigned int nreq, struct pt_regs *regs);
H A Dcurrent.h15 #define current ((struct task_struct *) ia64_getreg(_IA64_REG_TP))
H A Dptrace.h87 /* given a pointer to a task_struct, return the user's pt_regs */
94 struct task_struct *_task = (task); \
113 struct task_struct; /* forward decl */
117 extern unsigned long ia64_get_user_rbs_end (struct task_struct *, struct pt_regs *,
119 extern long ia64_peek (struct task_struct *, struct switch_stack *, unsigned long,
121 extern long ia64_poke (struct task_struct *, struct switch_stack *, unsigned long,
123 extern void ia64_flush_fph (struct task_struct *);
124 extern void ia64_sync_fph (struct task_struct *);
126 extern long ia64_sync_user_rbs (struct task_struct *, struct switch_stack *,
143 extern void ptrace_attach_sync_user_rbs (struct task_struct *);
H A Dswitch_to.h16 struct task_struct;
28 extern struct task_struct *ia64_switch_to (void *next_task);
30 extern void ia64_save_extra (struct task_struct *task);
31 extern void ia64_load_extra (struct task_struct *task);
/linux-4.1.27/tools/lib/lockdep/
H A Dcommon.c8 static __thread struct task_struct current_obj;
24 struct task_struct *__curr(void) __curr()
/linux-4.1.27/arch/alpha/kernel/
H A Dasm-offsets.c21 DEFINE(TASK_BLOCKED, offsetof(struct task_struct, blocked)); foo()
22 DEFINE(TASK_CRED, offsetof(struct task_struct, cred)); foo()
23 DEFINE(TASK_REAL_PARENT, offsetof(struct task_struct, real_parent)); foo()
24 DEFINE(TASK_GROUP_LEADER, offsetof(struct task_struct, group_leader)); foo()
25 DEFINE(TASK_TGID, offsetof(struct task_struct, tgid)); foo()
H A Dptrace.c107 get_reg_addr(struct task_struct * task, unsigned long regno) get_reg_addr()
128 get_reg(struct task_struct * task, unsigned long regno) get_reg()
145 put_reg(struct task_struct *task, unsigned long regno, unsigned long data) put_reg()
158 read_int(struct task_struct *task, unsigned long addr, int * data) read_int()
165 write_int(struct task_struct *task, unsigned long addr, int data) write_int()
175 ptrace_set_bpt(struct task_struct * child) ptrace_set_bpt()
234 ptrace_cancel_bpt(struct task_struct * child) ptrace_cancel_bpt()
252 void user_enable_single_step(struct task_struct *child) user_enable_single_step()
258 void user_disable_single_step(struct task_struct *child) user_disable_single_step()
268 void ptrace_disable(struct task_struct *child) ptrace_disable()
273 long arch_ptrace(struct task_struct *child, long request, arch_ptrace()
/linux-4.1.27/arch/mn10300/include/asm/
H A Dfpu.h29 extern struct task_struct *fpu_state_owner;
36 static inline void set_using_fpu(struct task_struct *tsk) set_using_fpu()
45 static inline void clear_using_fpu(struct task_struct *tsk) clear_using_fpu()
56 extern asmlinkage void fpu_kill_state(struct task_struct *);
63 static inline void unlazy_fpu(struct task_struct *tsk) unlazy_fpu()
82 struct task_struct *tsk = current; exit_fpu()
93 struct task_struct *tsk = current; flush_fpu()
117 struct task_struct;
119 static inline bool is_using_fpu(struct task_struct *tsk) { return false; } set_using_fpu()
120 static inline void set_using_fpu(struct task_struct *tsk) {} clear_using_fpu()
121 static inline void clear_using_fpu(struct task_struct *tsk) {} fpu_init_state()
124 static inline void fpu_kill_state(struct task_struct *tsk) {} unlazy_fpu()
125 static inline void unlazy_fpu(struct task_struct *tsk) {} exit_fpu()
H A Dcurrent.h21 register struct task_struct *const current asm("e2") __attribute__((used));
25 extern struct task_struct *__current;
29 struct task_struct *get_current(void) get_current()
H A Dsyscall.h22 static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs) syscall_get_nr()
27 static inline void syscall_rollback(struct task_struct *task, syscall_rollback()
33 static inline long syscall_get_error(struct task_struct *task, syscall_get_error()
40 static inline long syscall_get_return_value(struct task_struct *task, syscall_get_return_value()
46 static inline void syscall_set_return_value(struct task_struct *task, syscall_set_return_value()
53 static inline void syscall_get_arguments(struct task_struct *task, syscall_get_arguments()
85 static inline void syscall_set_arguments(struct task_struct *task, syscall_set_arguments()
H A Dswitch_to.h16 struct task_struct;
36 struct task_struct *__switch_to(struct thread_struct *prev,
38 struct task_struct *prev_task);
/linux-4.1.27/arch/microblaze/include/asm/
H A Dsyscall.h10 static inline long syscall_get_nr(struct task_struct *task, syscall_get_nr()
16 static inline void syscall_rollback(struct task_struct *task, syscall_rollback()
22 static inline long syscall_get_error(struct task_struct *task, syscall_get_error()
28 static inline long syscall_get_return_value(struct task_struct *task, syscall_get_return_value()
34 static inline void syscall_set_return_value(struct task_struct *task, syscall_set_return_value()
82 static inline void syscall_get_arguments(struct task_struct *task, syscall_get_arguments()
91 static inline void syscall_set_arguments(struct task_struct *task, syscall_set_arguments()
H A Dswitch_to.h12 struct task_struct;
15 extern struct task_struct *_switch_to(struct thread_info *prev,
H A Dunwind.h26 void microblaze_unwind(struct task_struct *task, struct stack_trace *trace);
/linux-4.1.27/arch/openrisc/include/asm/
H A Dsyscall.h27 syscall_get_nr(struct task_struct *task, struct pt_regs *regs) syscall_get_nr()
33 syscall_rollback(struct task_struct *task, struct pt_regs *regs) syscall_rollback()
39 syscall_get_error(struct task_struct *task, struct pt_regs *regs) syscall_get_error()
45 syscall_get_return_value(struct task_struct *task, struct pt_regs *regs) syscall_get_return_value()
51 syscall_set_return_value(struct task_struct *task, struct pt_regs *regs, syscall_set_return_value()
58 syscall_get_arguments(struct task_struct *task, struct pt_regs *regs, syscall_get_arguments()
67 syscall_set_arguments(struct task_struct *task, struct pt_regs *regs, syscall_set_arguments()
H A Dmmu_context.h24 extern int init_new_context(struct task_struct *tsk, struct mm_struct *mm);
27 struct task_struct *tsk);
39 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) enter_lazy_tlb()
/linux-4.1.27/arch/blackfin/include/asm/
H A Dsyscall.h26 syscall_get_nr(struct task_struct *task, struct pt_regs *regs) syscall_get_nr()
32 syscall_rollback(struct task_struct *task, struct pt_regs *regs) syscall_rollback()
38 syscall_get_error(struct task_struct *task, struct pt_regs *regs) syscall_get_error()
44 syscall_get_return_value(struct task_struct *task, struct pt_regs *regs) syscall_get_return_value()
50 syscall_set_return_value(struct task_struct *task, struct pt_regs *regs, syscall_set_return_value()
67 syscall_get_arguments(struct task_struct *task, struct pt_regs *regs, syscall_get_arguments()
85 syscall_set_arguments(struct task_struct *task, struct pt_regs *regs, syscall_set_arguments()
H A Dswitch_to.h21 asmlinkage struct task_struct *resume(struct task_struct *prev, struct task_struct *next);
H A Dcpu.h18 struct task_struct *idle;
/linux-4.1.27/arch/c6x/include/asm/
H A Dsyscall.h17 static inline int syscall_get_nr(struct task_struct *task, syscall_get_nr()
23 static inline void syscall_rollback(struct task_struct *task, syscall_rollback()
29 static inline long syscall_get_error(struct task_struct *task, syscall_get_error()
35 static inline long syscall_get_return_value(struct task_struct *task, syscall_get_return_value()
41 static inline void syscall_set_return_value(struct task_struct *task, syscall_set_return_value()
48 static inline void syscall_get_arguments(struct task_struct *task, syscall_get_arguments()
85 static inline void syscall_set_arguments(struct task_struct *task, syscall_set_arguments()
H A Dswitch_to.h18 struct task_struct;
22 struct task_struct *tsk);
/linux-4.1.27/arch/arm/include/asm/
H A Dsyscall.h21 static inline int syscall_get_nr(struct task_struct *task, syscall_get_nr()
27 static inline void syscall_rollback(struct task_struct *task, syscall_rollback()
33 static inline long syscall_get_error(struct task_struct *task, syscall_get_error()
40 static inline long syscall_get_return_value(struct task_struct *task, syscall_get_return_value()
46 static inline void syscall_set_return_value(struct task_struct *task, syscall_set_return_value()
55 static inline void syscall_get_arguments(struct task_struct *task, syscall_get_arguments()
82 static inline void syscall_set_arguments(struct task_struct *task, syscall_set_arguments()
H A Dswitch_to.h21 extern struct task_struct *__switch_to(struct task_struct *, struct thread_info *, struct thread_info *);
H A Dtraps.h7 struct task_struct;
51 extern void ptrace_break(struct task_struct *tsk, struct pt_regs *regs);
/linux-4.1.27/arch/sparc/include/asm/
H A Dcurrent.h17 register struct task_struct *current asm("g4");
26 struct task_struct; __get_current()
27 static inline struct task_struct *__get_current(void) __get_current()
H A Dmmu_context_32.h8 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) enter_lazy_tlb()
15 int init_new_context(struct task_struct *tsk, struct mm_struct *mm);
26 struct task_struct *tsk);
H A Dsyscall.h18 static inline long syscall_get_nr(struct task_struct *task, syscall_get_nr()
26 static inline void syscall_rollback(struct task_struct *task, syscall_rollback()
66 static inline long syscall_get_error(struct task_struct *task, syscall_get_error()
74 static inline long syscall_get_return_value(struct task_struct *task, syscall_get_return_value()
82 static inline void syscall_set_return_value(struct task_struct *task, syscall_set_return_value()
95 static inline void syscall_get_arguments(struct task_struct *task, syscall_get_arguments()
118 static inline void syscall_set_arguments(struct task_struct *task, syscall_set_arguments()
H A Dprocessor_32.h37 struct task_struct;
77 unsigned long thread_saved_pc(struct task_struct *t);
110 unsigned long get_wchan(struct task_struct *);
118 extern struct task_struct *last_task_used_math;
119 int do_mathemu(struct pt_regs *regs, struct task_struct *fpt);
/linux-4.1.27/arch/unicore32/include/asm/
H A Dswitch_to.h13 struct task_struct;
21 extern struct task_struct *__switch_to(struct task_struct *,
H A Dprocessor.h66 struct task_struct;
69 extern void release_thread(struct task_struct *);
71 unsigned long get_wchan(struct task_struct *p);
/linux-4.1.27/arch/score/kernel/
H A Dasm-offsets.c89 COMMENT("SCORE task_struct offsets."); output_task_defines()
90 OFFSET(TASK_STATE, task_struct, state); output_task_defines()
91 OFFSET(TASK_THREAD_INFO, task_struct, stack); output_task_defines()
92 OFFSET(TASK_FLAGS, task_struct, flags); output_task_defines()
93 OFFSET(TASK_MM, task_struct, mm); output_task_defines()
94 OFFSET(TASK_PID, task_struct, pid); output_task_defines()
95 DEFINE(TASK_STRUCT_SIZE, sizeof(struct task_struct)); output_task_defines()
117 OFFSET(THREAD_REG0, task_struct, thread.reg0); output_thread_defines()
118 OFFSET(THREAD_REG2, task_struct, thread.reg2); output_thread_defines()
119 OFFSET(THREAD_REG3, task_struct, thread.reg3); output_thread_defines()
120 OFFSET(THREAD_REG12, task_struct, thread.reg12); output_thread_defines()
121 OFFSET(THREAD_REG13, task_struct, thread.reg13); output_thread_defines()
122 OFFSET(THREAD_REG14, task_struct, thread.reg14); output_thread_defines()
123 OFFSET(THREAD_REG15, task_struct, thread.reg15); output_thread_defines()
124 OFFSET(THREAD_REG16, task_struct, thread.reg16); output_thread_defines()
125 OFFSET(THREAD_REG17, task_struct, thread.reg17); output_thread_defines()
126 OFFSET(THREAD_REG18, task_struct, thread.reg18); output_thread_defines()
127 OFFSET(THREAD_REG19, task_struct, thread.reg19); output_thread_defines()
128 OFFSET(THREAD_REG20, task_struct, thread.reg20); output_thread_defines()
129 OFFSET(THREAD_REG21, task_struct, thread.reg21); output_thread_defines()
130 OFFSET(THREAD_REG29, task_struct, thread.reg29); output_thread_defines()
132 OFFSET(THREAD_PSR, task_struct, thread.cp0_psr); output_thread_defines()
133 OFFSET(THREAD_EMA, task_struct, thread.cp0_ema); output_thread_defines()
134 OFFSET(THREAD_BADUADDR, task_struct, thread.cp0_baduaddr); output_thread_defines()
135 OFFSET(THREAD_ECODE, task_struct, thread.error_code); output_thread_defines()
136 OFFSET(THREAD_TRAPNO, task_struct, thread.trap_no); output_thread_defines()
/linux-4.1.27/arch/hexagon/include/asm/
H A Dswitch_to.h26 extern struct task_struct *__switch_to(struct task_struct *,
27 struct task_struct *,
28 struct task_struct *);
H A Dmmu_context.h39 struct task_struct *tsk) enter_lazy_tlb()
46 static inline void deactivate_mm(struct task_struct *tsk, deactivate_mm()
56 static inline int init_new_context(struct task_struct *tsk, init_new_context()
67 struct task_struct *tsk) switch_mm()
/linux-4.1.27/arch/um/kernel/
H A Dreboot.c18 struct task_struct *p; kill_off_processes()
23 struct task_struct *t; for_each_process()
H A Dptrace.c12 void user_enable_single_step(struct task_struct *child) user_enable_single_step()
22 void user_disable_single_step(struct task_struct *child) user_disable_single_step()
35 void ptrace_disable(struct task_struct *child) ptrace_disable()
40 extern int peek_user(struct task_struct * child, long addr, long data);
41 extern int poke_user(struct task_struct * child, long addr, long data);
43 long arch_ptrace(struct task_struct *child, long request, arch_ptrace()
114 static void send_sigtrap(struct task_struct *tsk, struct uml_pt_regs *regs, send_sigtrap()
H A Dstacktrace.c19 void dump_trace(struct task_struct *tsk, dump_trace()
63 static void __save_stack_trace(struct task_struct *tsk, struct stack_trace *trace) __save_stack_trace()
76 void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) save_stack_trace_tsk()
/linux-4.1.27/arch/blackfin/mach-bf561/include/mach/
H A Dsmp.h12 struct task_struct;
18 int platform_boot_secondary(unsigned int cpu, struct task_struct *idle);
/linux-4.1.27/security/apparmor/include/
H A Dipc.h25 int aa_ptrace(struct task_struct *tracer, struct task_struct *tracee,
/linux-4.1.27/include/trace/events/
H A Dsched.h16 TP_PROTO(struct task_struct *t),
58 TP_PROTO(struct task_struct *p, int success),
84 TP_PROTO(struct task_struct *p, int success),
91 TP_PROTO(struct task_struct *p, int success),
95 static inline long __trace_sched_switch_state(struct task_struct *p) __trace_sched_switch_state()
119 TP_PROTO(struct task_struct *prev,
120 struct task_struct *next),
160 TP_PROTO(struct task_struct *p, int dest_cpu),
187 TP_PROTO(struct task_struct *p),
211 TP_PROTO(struct task_struct *p),
219 TP_PROTO(struct task_struct *p),
226 TP_PROTO(struct task_struct *p),
259 TP_PROTO(struct task_struct *parent, struct task_struct *child),
287 TP_PROTO(struct task_struct *p, pid_t old_pid,
314 TP_PROTO(struct task_struct *tsk, u64 delay),
341 TP_PROTO(struct task_struct *tsk, u64 delay),
349 TP_PROTO(struct task_struct *tsk, u64 delay),
357 TP_PROTO(struct task_struct *tsk, u64 delay),
364 TP_PROTO(struct task_struct *tsk, u64 delay),
373 TP_PROTO(struct task_struct *tsk, u64 runtime, u64 vruntime),
398 TP_PROTO(struct task_struct *tsk, u64 runtime, u64 vruntime),
407 TP_PROTO(struct task_struct *tsk, int newprio),
432 TP_PROTO(struct task_struct *tsk),
451 TP_PROTO(struct task_struct *tsk, int src_cpu, int dst_cpu),
486 TP_PROTO(struct task_struct *tsk, int src_cpu, int dst_cpu),
492 TP_PROTO(struct task_struct *tsk, int src_cpu, int dst_cpu),
499 TP_PROTO(struct task_struct *src_tsk, int src_cpu,
500 struct task_struct *dst_tsk, int dst_cpu),
H A Dtask.h10 TP_PROTO(struct task_struct *task, unsigned long clone_flags),
35 TP_PROTO(struct task_struct *task, const char *comm),
H A Doom.h10 TP_PROTO(struct task_struct *task),
/linux-4.1.27/arch/metag/include/asm/
H A Dsyscall.h22 static inline long syscall_get_nr(struct task_struct *task, syscall_get_nr()
41 static inline void syscall_rollback(struct task_struct *task, syscall_rollback()
47 static inline long syscall_get_error(struct task_struct *task, syscall_get_error()
54 static inline long syscall_get_return_value(struct task_struct *task, syscall_get_return_value()
60 static inline void syscall_set_return_value(struct task_struct *task, syscall_set_return_value()
67 static inline void syscall_get_arguments(struct task_struct *task, syscall_get_arguments()
83 static inline void syscall_set_arguments(struct task_struct *task, syscall_set_arguments()
/linux-4.1.27/arch/nios2/include/asm/
H A Dsyscall.h23 static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs) syscall_get_nr()
28 static inline void syscall_rollback(struct task_struct *task, syscall_rollback()
35 static inline long syscall_get_error(struct task_struct *task, syscall_get_error()
41 static inline long syscall_get_return_value(struct task_struct *task, syscall_get_return_value()
47 static inline void syscall_set_return_value(struct task_struct *task, syscall_set_return_value()
60 static inline void syscall_get_arguments(struct task_struct *task, syscall_get_arguments()
99 static inline void syscall_set_arguments(struct task_struct *task, syscall_set_arguments()
H A Dmmu_context.h27 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) enter_lazy_tlb()
37 static inline int init_new_context(struct task_struct *tsk, init_new_context()
53 struct task_struct *tsk);
55 static inline void deactivate_mm(struct task_struct *tsk, deactivate_mm()
/linux-4.1.27/arch/openrisc/kernel/
H A Dasm-offsets.c44 /* offsets into the task_struct */ main()
45 DEFINE(TASK_STATE, offsetof(struct task_struct, state)); main()
46 DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags)); main()
47 DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace)); main()
48 DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); main()
49 DEFINE(TASK_MM, offsetof(struct task_struct, mm)); main()
50 DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); main()
/linux-4.1.27/arch/arm64/include/asm/
H A Dsyscall.h25 static inline int syscall_get_nr(struct task_struct *task, syscall_get_nr()
31 static inline void syscall_rollback(struct task_struct *task, syscall_rollback()
38 static inline long syscall_get_error(struct task_struct *task, syscall_get_error()
45 static inline long syscall_get_return_value(struct task_struct *task, syscall_get_return_value()
51 static inline void syscall_set_return_value(struct task_struct *task, syscall_set_return_value()
60 static inline void syscall_get_arguments(struct task_struct *task, syscall_get_arguments()
86 static inline void syscall_set_arguments(struct task_struct *task, syscall_set_arguments()
H A Dhw_breakpoint.h104 struct task_struct;
122 extern void hw_breakpoint_thread_switch(struct task_struct *next);
123 extern void ptrace_hw_copy_thread(struct task_struct *task);
125 static inline void hw_breakpoint_thread_switch(struct task_struct *next) hw_breakpoint_thread_switch()
128 static inline void ptrace_hw_copy_thread(struct task_struct *task) ptrace_hw_copy_thread()
/linux-4.1.27/kernel/locking/
H A Drtmutex_common.h50 struct task_struct *task;
80 static inline int task_has_pi_waiters(struct task_struct *p) task_has_pi_waiters()
86 task_top_pi_waiter(struct task_struct *p) task_top_pi_waiter()
98 static inline struct task_struct *rt_mutex_owner(struct rt_mutex *lock) rt_mutex_owner()
100 return (struct task_struct *) rt_mutex_owner()
122 extern struct task_struct *rt_mutex_next_owner(struct rt_mutex *lock);
124 struct task_struct *proxy_owner);
126 struct task_struct *proxy_owner);
129 struct task_struct *task);
H A Drtmutex-debug.h13 rt_mutex_deadlock_account_lock(struct rt_mutex *lock, struct task_struct *task);
14 extern void rt_mutex_deadlock_account_unlock(struct task_struct *task);
21 struct task_struct *powner);
H A Drtmutex-debug.c33 static void printk_task(struct task_struct *p) printk_task()
58 void rt_mutex_debug_task_free(struct task_struct *task) rt_mutex_debug_task_free()
73 struct task_struct *task; debug_rt_mutex_deadlock()
87 struct task_struct *task; debug_rt_mutex_print_deadlock()
146 debug_rt_mutex_proxy_lock(struct rt_mutex *lock, struct task_struct *powner) debug_rt_mutex_proxy_lock()
177 rt_mutex_deadlock_account_lock(struct rt_mutex *lock, struct task_struct *task) rt_mutex_deadlock_account_lock()
181 void rt_mutex_deadlock_account_unlock(struct task_struct *task) rt_mutex_deadlock_account_unlock()
/linux-4.1.27/arch/x86/um/asm/
H A Dptrace.h50 extern int ptrace_get_thread_area(struct task_struct *child, int idx,
53 extern int ptrace_set_thread_area(struct task_struct *child, int idx,
69 static inline int ptrace_get_thread_area(struct task_struct *child, int idx, ptrace_get_thread_area()
75 static inline int ptrace_set_thread_area(struct task_struct *child, int idx, ptrace_set_thread_area()
81 extern long arch_prctl(struct task_struct *task, int code,
/linux-4.1.27/tools/lib/lockdep/uinclude/linux/
H A Dlockdep.h18 struct task_struct { struct
28 extern struct task_struct *__curr(void);
/linux-4.1.27/arch/xtensa/kernel/
H A Dasm-offsets.c71 /* struct task_struct */ main()
72 DEFINE(TASK_PTRACE, offsetof (struct task_struct, ptrace)); main()
73 DEFINE(TASK_MM, offsetof (struct task_struct, mm)); main()
74 DEFINE(TASK_ACTIVE_MM, offsetof (struct task_struct, active_mm)); main()
75 DEFINE(TASK_PID, offsetof (struct task_struct, pid)); main()
76 DEFINE(TASK_THREAD, offsetof (struct task_struct, thread)); main()
77 DEFINE(TASK_THREAD_INFO, offsetof (struct task_struct, stack)); main()
78 DEFINE(TASK_STRUCT_SIZE, sizeof (struct task_struct)); main()
89 DEFINE(THREAD_RA, offsetof (struct task_struct, thread.ra)); main()
90 DEFINE(THREAD_SP, offsetof (struct task_struct, thread.sp)); main()
104 DEFINE(THREAD_CURRENT_DS, offsetof (struct task_struct, \ main()
H A Dptrace.c33 void user_enable_single_step(struct task_struct *child) user_enable_single_step()
38 void user_disable_single_step(struct task_struct *child) user_disable_single_step()
47 void ptrace_disable(struct task_struct *child) ptrace_disable()
52 int ptrace_getregs(struct task_struct *child, void __user *uregs) ptrace_getregs()
78 int ptrace_setregs(struct task_struct *child, void __user *uregs) ptrace_setregs()
127 int ptrace_getxregs(struct task_struct *child, void __user *uregs) ptrace_getxregs()
151 int ptrace_setxregs(struct task_struct *child, void __user *uregs) ptrace_setxregs()
177 int ptrace_peekusr(struct task_struct *child, long regno, long __user *ret) ptrace_peekusr()
242 int ptrace_pokeusr(struct task_struct *child, long regno, long val) ptrace_pokeusr()
270 long arch_ptrace(struct task_struct *child, long request, arch_ptrace()
/linux-4.1.27/security/yama/
H A Dyama_lsm.c31 struct task_struct *tracer;
32 struct task_struct *tracee;
66 * @tracer: the task_struct of the process doing the ptrace
67 * @tracee: the task_struct of the process to be ptraced
74 static int yama_ptracer_add(struct task_struct *tracer, yama_ptracer_add()
75 struct task_struct *tracee) yama_ptracer_add()
112 static void yama_ptracer_del(struct task_struct *tracer, yama_ptracer_del()
113 struct task_struct *tracee) yama_ptracer_del()
138 void yama_task_free(struct task_struct *task) yama_task_free()
158 struct task_struct *myself = current; yama_task_prctl()
184 struct task_struct *tracer; yama_task_prctl()
214 static int task_is_descendant(struct task_struct *parent, task_is_descendant()
215 struct task_struct *child) task_is_descendant()
218 struct task_struct *walker = child; task_is_descendant()
242 * @tracer: the task_struct of the process attempting ptrace
243 * @tracee: the task_struct of the process to be ptraced
247 static int ptracer_exception_found(struct task_struct *tracer, ptracer_exception_found()
248 struct task_struct *tracee) ptracer_exception_found()
252 struct task_struct *parent = NULL; ptracer_exception_found()
282 int yama_ptrace_access_check(struct task_struct *child, yama_ptrace_access_check()
336 int yama_ptrace_traceme(struct task_struct *parent) yama_ptrace_traceme()
/linux-4.1.27/arch/sh/kernel/
H A Dprocess.c21 int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src) arch_dup_task_struct()
39 void free_thread_xstate(struct task_struct *tsk) free_thread_xstate()
47 void arch_release_task_struct(struct task_struct *tsk) arch_release_task_struct()
H A Dprocess_32.c88 struct task_struct *tsk = current; flush_thread()
99 void release_thread(struct task_struct *dead_task) release_thread()
110 struct task_struct *tsk = current; dump_fpu()
127 unsigned long arg, struct task_struct *p) copy_thread()
133 struct task_struct *tsk = current; copy_thread()
180 __notrace_funcgraph struct task_struct * __switch_to()
181 __switch_to(struct task_struct *prev, struct task_struct *next) __switch_to()
216 unsigned long get_wchan(struct task_struct *p) get_wchan()
H A Dptrace_32.c42 static inline int get_stack_long(struct task_struct *task, int offset) get_stack_long()
54 static inline int put_stack_long(struct task_struct *task, int offset, put_stack_long()
79 static int set_single_step(struct task_struct *tsk, unsigned long addr) set_single_step()
114 void user_enable_single_step(struct task_struct *child) user_enable_single_step()
123 void user_disable_single_step(struct task_struct *child) user_disable_single_step()
133 void ptrace_disable(struct task_struct *child) ptrace_disable()
138 static int genregs_get(struct task_struct *target, genregs_get()
162 static int genregs_set(struct task_struct *target, genregs_set()
186 int fpregs_get(struct task_struct *target, fpregs_get()
205 static int fpregs_set(struct task_struct *target, fpregs_set()
226 static int fpregs_active(struct task_struct *target, fpregs_active()
234 static int dspregs_get(struct task_struct *target, dspregs_get()
252 static int dspregs_set(struct task_struct *target, dspregs_set()
270 static int dspregs_active(struct task_struct *target, dspregs_active()
365 const struct user_regset_view *task_user_regset_view(struct task_struct *task) task_user_regset_view()
370 long arch_ptrace(struct task_struct *child, long request, arch_ptrace()
/linux-4.1.27/arch/arc/kernel/
H A Dasm-offsets.c20 DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); main()
21 DEFINE(TASK_THREAD_INFO, offsetof(struct task_struct, stack)); main()
38 DEFINE(TASK_ACT_MM, offsetof(struct task_struct, active_mm)); main()
39 DEFINE(TASK_TGID, offsetof(struct task_struct, tgid)); main()
/linux-4.1.27/scripts/gdb/linux/
H A Dtasks.py19 task_type = utils.CachedType("struct task_struct")
49 """Find Linux task by PID and return the task_struct variable.
52 return that task_struct variable which PID matches."""
79 ia64_task_size = gdb.parse_and_eval("sizeof(struct task_struct)")
/linux-4.1.27/arch/frv/include/asm/
H A Dprocessor.h35 struct task_struct;
44 struct task_struct *curr; /* [GR29] current pointer for this thread */
59 extern struct task_struct *__kernel_current_task;
70 (struct task_struct *) init_stack, \
88 static inline void release_thread(struct task_struct *dead_task) release_thread()
109 extern unsigned long thread_saved_pc(struct task_struct *tsk);
111 unsigned long get_wchan(struct task_struct *p);
H A Dsyscall.h21 static inline long syscall_get_nr(struct task_struct *task, syscall_get_nr()
31 static inline void syscall_rollback(struct task_struct *task, syscall_rollback()
41 static inline long syscall_get_error(struct task_struct *task, syscall_get_error()
50 static inline long syscall_get_return_value(struct task_struct *task, syscall_get_return_value()
59 static inline void syscall_set_return_value(struct task_struct *task, syscall_set_return_value()
72 static inline void syscall_get_arguments(struct task_struct *task, syscall_get_arguments()
102 static inline void syscall_set_arguments(struct task_struct *task, syscall_set_arguments()
H A Dswitch_to.h23 struct task_struct *__switch_to(struct thread_struct *prev_thread,
25 struct task_struct *prev);
/linux-4.1.27/arch/microblaze/kernel/
H A Dasm-offsets.c71 /* struct task_struct */ main()
72 DEFINE(TS_THREAD_INFO, offsetof(struct task_struct, stack)); main()
74 DEFINE(TASK_STATE, offsetof(struct task_struct, state)); main()
75 DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags)); main()
76 DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace)); main()
77 DEFINE(TASK_BLOCKED, offsetof(struct task_struct, blocked)); main()
78 DEFINE(TASK_MM, offsetof(struct task_struct, mm)); main()
79 DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); main()
80 DEFINE(TASK_PID, offsetof(struct task_struct, pid)); main()
81 DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); main()
/linux-4.1.27/arch/unicore32/kernel/
H A Dptrace.c25 static inline long get_user_reg(struct task_struct *task, int offset) get_user_reg()
37 put_user_reg(struct task_struct *task, int offset, long data) put_user_reg()
56 void ptrace_disable(struct task_struct *child) ptrace_disable()
63 static int ptrace_read_user(struct task_struct *tsk, unsigned long off, ptrace_read_user()
78 static int ptrace_write_user(struct task_struct *tsk, unsigned long off, ptrace_write_user()
87 long arch_ptrace(struct task_struct *child, long request, arch_ptrace()
/linux-4.1.27/include/net/
H A Dcls_cgroup.h27 struct cgroup_cls_state *task_cls_state(struct task_struct *p);
29 static inline u32 task_cls_classid(struct task_struct *p) task_cls_classid()
H A Dnetprio_cgroup.h30 static inline u32 task_netprioidx(struct task_struct *p) task_netprioidx()
42 static inline u32 task_netprioidx(struct task_struct *p) task_netprioidx()
/linux-4.1.27/include/trace/
H A Dsyscall.h37 static inline void syscall_tracepoint_update(struct task_struct *p) syscall_tracepoint_update()
45 static inline void syscall_tracepoint_update(struct task_struct *p) syscall_tracepoint_update()
/linux-4.1.27/kernel/debug/kdb/
H A Dkdb_bt.c21 static void kdb_show_stack(struct task_struct *p, void *addr) kdb_show_stack()
28 show_stack((struct task_struct *)p, addr); kdb_show_stack()
80 kdb_bt1(struct task_struct *p, unsigned long mask, kdb_bt1()
118 struct task_struct *g, *p; kdb_bt()
140 struct task_struct *p;
160 kdb_set_current_task((struct task_struct *)addr);
161 return kdb_bt1((struct task_struct *)addr, ~0UL, argcount, 0);
164 struct task_struct *save_current_task = kdb_current_task;
/linux-4.1.27/mm/
H A Dmmu_context.c23 struct task_struct *tsk = current; use_mm()
53 struct task_struct *tsk = current; unuse_mm()
/linux-4.1.27/drivers/media/usb/pvrusb2/
H A Dpvrusb2-dvb.h25 struct task_struct *thread;
/linux-4.1.27/init/
H A Dinit_task.c18 struct task_struct init_task = INIT_TASK(init_task);
/linux-4.1.27/arch/avr32/kernel/
H A Dasm-offsets.c21 OFFSET(TSK_active_mm, task_struct, active_mm); foo()
/linux-4.1.27/arch/arm/kernel/
H A Dperf_regs.c27 u64 perf_reg_abi(struct task_struct *task) perf_reg_abi()
/linux-4.1.27/arch/sh/kernel/cpu/sh5/
H A Dfpu.c19 void save_fpu(struct task_struct *tsk) save_fpu()
61 void restore_fpu(struct task_struct *tsk) restore_fpu()
106 struct task_struct *tsk = current; do_fpu_error()
/linux-4.1.27/arch/sh/kernel/cpu/
H A Dfpu.c7 int init_fpu(struct task_struct *tsk) init_fpu()
42 struct task_struct *tsk = current; __fpu_state_restore()
52 struct task_struct *tsk = current; fpu_state_restore()
/linux-4.1.27/arch/frv/kernel/
H A Dptrace.c40 static int genregs_get(struct task_struct *target, genregs_get()
60 static int genregs_set(struct task_struct *target, genregs_set()
105 static int fpmregs_get(struct task_struct *target, fpmregs_get()
125 static int fpmregs_set(struct task_struct *target, fpmregs_set()
145 static int fpmregs_active(struct task_struct *target, fpmregs_active()
195 const struct user_regset_view *task_user_regset_view(struct task_struct *task) task_user_regset_view()
203 static inline long get_reg(struct task_struct *task, int regno) get_reg()
216 static inline int put_reg(struct task_struct *task, int regno, put_reg()
241 void user_enable_single_step(struct task_struct *child) user_enable_single_step()
246 void user_disable_single_step(struct task_struct *child) user_disable_single_step()
251 void ptrace_disable(struct task_struct *child) ptrace_disable()
256 long arch_ptrace(struct task_struct *child, long request, arch_ptrace()
/linux-4.1.27/kernel/trace/
H A Dtrace_sched_switch.c19 probe_sched_switch(void *ignore, struct task_struct *prev, struct task_struct *next) probe_sched_switch()
29 probe_sched_wakeup(void *ignore, struct task_struct *wakee, int success) probe_sched_wakeup()
/linux-4.1.27/fs/proc/
H A Dnamespaces.c37 struct task_struct *task; proc_ns_follow_link()
58 struct task_struct *task; proc_ns_readlink()
82 struct dentry *dentry, struct task_struct *task, const void *ptr) proc_ns_instantiate()
108 struct task_struct *task = get_proc_task(file_inode(file)); proc_ns_dir_readdir()
142 struct task_struct *task = get_proc_task(dir); proc_ns_dir_lookup()
H A Dinternal.h58 struct task_struct *task);
95 static inline struct task_struct *get_proc_task(struct inode *inode) get_proc_task()
100 static inline int task_dumpable(struct task_struct *task) task_dumpable()
151 struct pid *, struct task_struct *);
153 struct pid *, struct task_struct *);
155 struct pid *, struct task_struct *);
157 struct pid *, struct task_struct *);
165 extern struct inode *proc_pid_make_inode(struct super_block *, struct task_struct *);
174 struct task_struct *, const void *);
176 instantiate_t, struct task_struct *, const void *);
280 struct task_struct *task; proc_tty_init()
H A Darray.c91 static inline void task_name(struct seq_file *m, struct task_struct *p) task_name()
125 static inline const char *get_task_state(struct task_struct *tsk) get_task_state()
135 struct pid *pid, struct task_struct *p) task_state()
140 struct task_struct *tracer; task_state()
234 static void collect_sigign_sigcatch(struct task_struct *p, sigset_t *ign, collect_sigign_sigcatch()
249 static inline void task_sig(struct seq_file *m, struct task_struct *p) task_sig()
300 static inline void task_cap(struct seq_file *m, struct task_struct *p) task_cap()
319 static inline void task_seccomp(struct seq_file *m, struct task_struct *p) task_seccomp()
327 struct task_struct *p) task_context_switch_counts()
335 static void task_cpus_allowed(struct seq_file *m, struct task_struct *task) task_cpus_allowed()
344 struct pid *pid, struct task_struct *task) proc_pid_status()
365 struct pid *pid, struct task_struct *task, int whole) do_task_stat()
426 struct task_struct *t = task; do_task_stat()
545 struct pid *pid, struct task_struct *task) proc_tid_stat()
551 struct pid *pid, struct task_struct *task) proc_tgid_stat()
557 struct pid *pid, struct task_struct *task) proc_pid_statm()
588 struct task_struct *start, *task; get_children_pid()
608 struct task_struct, sibling); get_children_pid()
/linux-4.1.27/arch/m32r/kernel/
H A Dptrace.c39 get_stack_long(struct task_struct *task, int offset) get_stack_long()
52 put_stack_long(struct task_struct *task, int offset, unsigned long data) put_stack_long()
71 static int ptrace_read_user(struct task_struct *tsk, unsigned long off, ptrace_read_user()
133 static int ptrace_write_user(struct task_struct *tsk, unsigned long off, ptrace_write_user()
189 static int ptrace_getregs(struct task_struct *tsk, void __user *uregs) ptrace_getregs()
199 static int ptrace_setregs(struct task_struct *tsk, void __user *uregs) ptrace_setregs()
216 check_condition_bit(struct task_struct *child) check_condition_bit()
223 unsigned long regno2, struct task_struct *child) check_condition_src()
257 struct task_struct *child) compute_next_pc_for_16bit_insn()
360 struct task_struct *child) compute_next_pc_for_32bit_insn()
419 unsigned long *next_pc, struct task_struct *child) compute_next_pc()
428 register_debug_trap(struct task_struct *child, unsigned long next_pc, register_debug_trap()
458 unregister_debug_trap(struct task_struct *child, unsigned long addr, unregister_debug_trap()
490 unregister_all_debug_traps(struct task_struct *child) unregister_all_debug_traps()
535 embed_debug_trap(struct task_struct *child, unsigned long next_pc) embed_debug_trap()
571 init_debug_traps(struct task_struct *child) init_debug_traps()
582 void user_enable_single_step(struct task_struct *child) user_enable_single_step()
606 void user_disable_single_step(struct task_struct *child) user_disable_single_step()
617 void ptrace_disable(struct task_struct *child) ptrace_disable()
623 arch_ptrace(struct task_struct *child, long request, arch_ptrace()
/linux-4.1.27/arch/tile/kernel/
H A Dptrace.c32 void user_enable_single_step(struct task_struct *child) user_enable_single_step()
37 void user_disable_single_step(struct task_struct *child) user_disable_single_step()
45 void ptrace_disable(struct task_struct *child) ptrace_disable()
63 static char *getregs(struct task_struct *child, struct pt_regs *uregs) getregs()
78 static void putregs(struct task_struct *child, struct pt_regs *uregs) putregs()
95 static int tile_gpr_get(struct task_struct *target, tile_gpr_get()
108 static int tile_gpr_set(struct task_struct *target, tile_gpr_set()
145 const struct user_regset_view *task_user_regset_view(struct task_struct *task) task_user_regset_view()
150 long arch_ptrace(struct task_struct *child, long request, arch_ptrace()
247 long compat_arch_ptrace(struct task_struct *child, compat_long_t request, compat_arch_ptrace()
306 void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs) send_sigtrap()
/linux-4.1.27/arch/mn10300/kernel/
H A Dprocess.c42 unsigned long thread_saved_pc(struct task_struct *tsk) thread_saved_pc()
116 void release_thread(struct task_struct *dead_task) release_thread()
124 void copy_segments(struct task_struct *p, struct mm_struct *new_mm) copy_segments()
132 int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src) arch_dup_task_struct()
145 struct task_struct *p) copy_thread()
189 unsigned long get_wchan(struct task_struct *p) get_wchan()
/linux-4.1.27/arch/c6x/kernel/
H A Dptrace.c25 void ptrace_disable(struct task_struct *child) ptrace_disable()
33 static inline long get_reg(struct task_struct *task, int regno) get_reg()
46 static inline int put_reg(struct task_struct *task, put_reg()
60 static int gpr_get(struct task_struct *target, gpr_get()
72 static int gpr_set(struct task_struct *target, gpr_set()
134 const struct user_regset_view *task_user_regset_view(struct task_struct *task) task_user_regset_view()
142 long arch_ptrace(struct task_struct *child, long request, arch_ptrace()
/linux-4.1.27/arch/ia64/kernel/
H A Dasm-offsets.c24 DEFINE(IA64_TASK_SIZE, sizeof (struct task_struct)); foo()
50 DEFINE(IA64_TASK_BLOCKED_OFFSET,offsetof (struct task_struct, blocked)); foo()
51 DEFINE(IA64_TASK_CLEAR_CHILD_TID_OFFSET,offsetof (struct task_struct, clear_child_tid)); foo()
52 DEFINE(IA64_TASK_GROUP_LEADER_OFFSET, offsetof (struct task_struct, group_leader)); foo()
53 DEFINE(IA64_TASK_TGIDLINK_OFFSET, offsetof (struct task_struct, pids[PIDTYPE_PID].pid)); foo()
56 DEFINE(IA64_TASK_PENDING_OFFSET,offsetof (struct task_struct, pending)); foo()
57 DEFINE(IA64_TASK_PID_OFFSET, offsetof (struct task_struct, pid)); foo()
58 DEFINE(IA64_TASK_REAL_PARENT_OFFSET, offsetof (struct task_struct, real_parent)); foo()
59 DEFINE(IA64_TASK_SIGHAND_OFFSET,offsetof (struct task_struct, sighand)); foo()
60 DEFINE(IA64_TASK_SIGNAL_OFFSET,offsetof (struct task_struct, signal)); foo()
61 DEFINE(IA64_TASK_TGID_OFFSET, offsetof (struct task_struct, tgid)); foo()
62 DEFINE(IA64_TASK_THREAD_KSP_OFFSET, offsetof (struct task_struct, thread.ksp)); foo()
63 DEFINE(IA64_TASK_THREAD_ON_USTACK_OFFSET, offsetof (struct task_struct, thread.on_ustack)); foo()

Completed in 5872 milliseconds

1234567