Home
last modified time | relevance | path

Searched refs:task_struct (Results 1 – 25 of 1252) sorted by relevance

12345678910>>...51

/linux/arch/riscv/kernel/
A Dasm-offsets.c20 OFFSET(TASK_THREAD_RA, task_struct, thread.ra); in asm_offsets()
21 OFFSET(TASK_THREAD_SP, task_struct, thread.sp); in asm_offsets()
22 OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]); in asm_offsets()
23 OFFSET(TASK_THREAD_S1, task_struct, thread.s[1]); in asm_offsets()
24 OFFSET(TASK_THREAD_S2, task_struct, thread.s[2]); in asm_offsets()
25 OFFSET(TASK_THREAD_S3, task_struct, thread.s[3]); in asm_offsets()
26 OFFSET(TASK_THREAD_S4, task_struct, thread.s[4]); in asm_offsets()
275 offsetof(struct task_struct, thread.ra) in asm_offsets()
276 - offsetof(struct task_struct, thread.ra) in asm_offsets()
279 offsetof(struct task_struct, thread.sp) in asm_offsets()
[all …]
/linux/include/linux/
A Dvtime.h16 extern void vtime_account_kernel(struct task_struct *tsk);
17 extern void vtime_account_idle(struct task_struct *tsk);
21 extern void arch_vtime_task_switch(struct task_struct *tsk);
22 extern void vtime_user_enter(struct task_struct *tsk);
23 extern void vtime_user_exit(struct task_struct *tsk);
24 extern void vtime_guest_enter(struct task_struct *tsk);
25 extern void vtime_guest_exit(struct task_struct *tsk);
37 extern void vtime_account_softirq(struct task_struct *tsk);
38 extern void vtime_account_hardirq(struct task_struct *tsk);
39 extern void vtime_flush(struct task_struct *tsk);
[all …]
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);
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) in proc_fork_connector()
35 static inline void proc_exec_connector(struct task_struct *task) in proc_exec_connector()
38 static inline void proc_id_connector(struct task_struct *task, in proc_id_connector()
[all …]
A Dsched.h723 struct task_struct { struct
755 struct task_struct *last_wakee; argument
955 struct task_struct __rcu *real_parent; argument
958 struct task_struct __rcu *parent; argument
965 struct task_struct *group_leader; argument
1117 struct task_struct *pi_top_task; argument
1434 struct task_struct *oom_reaper_list; argument
1793 extern int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node);
1808 static inline int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node) in dup_user_cpus_ptr()
1851 extern struct task_struct *idle_task(int cpu);
[all …]
A Dptrace.h56 extern long arch_ptrace(struct task_struct *child, long request,
60 extern void ptrace_disable(struct task_struct *);
64 extern void __ptrace_link(struct task_struct *child,
65 struct task_struct *new_parent,
67 extern void __ptrace_unlink(struct task_struct *child);
97 static inline int ptrace_reparented(struct task_struct *child) in ptrace_reparented()
102 static inline void ptrace_unlink(struct task_struct *child) in ptrace_unlink()
124 static inline struct task_struct *ptrace_parent(struct task_struct *task) in ptrace_parent()
313 extern void user_enable_single_step(struct task_struct *);
314 extern void user_disable_single_step(struct task_struct *);
[all …]
A Ddelayacct.h72 extern void __delayacct_tsk_init(struct task_struct *);
73 extern void __delayacct_tsk_exit(struct task_struct *);
75 extern void __delayacct_blkio_end(struct task_struct *);
77 extern __u64 __delayacct_blkio_ticks(struct task_struct *);
103 static inline void delayacct_tsk_init(struct task_struct *tsk) in delayacct_tsk_init()
114 static inline void delayacct_tsk_free(struct task_struct *tsk) in delayacct_tsk_free()
131 static inline void delayacct_blkio_end(struct task_struct *p) in delayacct_blkio_end()
179 static inline void delayacct_tsk_init(struct task_struct *tsk) in delayacct_tsk_init()
181 static inline void delayacct_tsk_free(struct task_struct *tsk) in delayacct_tsk_free()
185 static inline void delayacct_blkio_end(struct task_struct *p) in delayacct_blkio_end()
[all …]
A Dcgroup.h67 struct task_struct *cur_task;
110 int cgroup_attach_task_all(struct task_struct *from, struct task_struct *);
121 struct pid *pid, struct task_struct *tsk);
123 void cgroup_fork(struct task_struct *p);
124 extern int cgroup_can_fork(struct task_struct *p,
126 extern void cgroup_cancel_fork(struct task_struct *p,
128 extern void cgroup_post_fork(struct task_struct *p,
130 void cgroup_exit(struct task_struct *p);
131 void cgroup_release(struct task_struct *p);
132 void cgroup_free(struct task_struct *p);
[all …]
A Dkthread.h36 void set_kthread_struct(struct task_struct *p);
39 bool kthread_is_per_cpu(struct task_struct *k);
52 struct task_struct *__k \
59 void free_kthread_struct(struct task_struct *k);
62 int kthread_stop(struct task_struct *k);
67 void *kthread_func(struct task_struct *k);
68 void *kthread_data(struct task_struct *k);
70 int kthread_park(struct task_struct *k);
71 void kthread_unpark(struct task_struct *k);
75 extern struct task_struct *kthreadd_task;
[all …]
A Dtsacct_kern.h16 struct taskstats *stats, struct task_struct *tsk);
20 struct taskstats *stats, struct task_struct *tsk) in bacct_add_tsk()
25 extern void xacct_add_tsk(struct taskstats *stats, struct task_struct *p);
26 extern void acct_update_integrals(struct task_struct *tsk);
27 extern void acct_account_cputime(struct task_struct *tsk);
28 extern void acct_clear_integrals(struct task_struct *tsk);
30 static inline void xacct_add_tsk(struct taskstats *stats, struct task_struct *p) in xacct_add_tsk()
32 static inline void acct_update_integrals(struct task_struct *tsk) in acct_update_integrals()
34 static inline void acct_account_cputime(struct task_struct *tsk) in acct_account_cputime()
36 static inline void acct_clear_integrals(struct task_struct *tsk) in acct_clear_integrals()
/linux/arch/parisc/kernel/
A Dasm-offsets.c38 DEFINE(TASK_TI_FLAGS, offsetof(struct task_struct, thread_info.flags)); in main()
39 DEFINE(TASK_STACK, offsetof(struct task_struct, stack)); in main()
41 DEFINE(TASK_REGS, offsetof(struct task_struct, thread.regs)); in main()
42 DEFINE(TASK_PT_PSW, offsetof(struct task_struct, thread.regs.gr[ 0])); in main()
43 DEFINE(TASK_PT_GR1, offsetof(struct task_struct, thread.regs.gr[ 1])); in main()
44 DEFINE(TASK_PT_GR2, offsetof(struct task_struct, thread.regs.gr[ 2])); in main()
45 DEFINE(TASK_PT_GR3, offsetof(struct task_struct, thread.regs.gr[ 3])); in main()
46 DEFINE(TASK_PT_GR4, offsetof(struct task_struct, thread.regs.gr[ 4])); in main()
47 DEFINE(TASK_PT_GR5, offsetof(struct task_struct, thread.regs.gr[ 5])); in main()
48 DEFINE(TASK_PT_GR6, offsetof(struct task_struct, thread.regs.gr[ 6])); in main()
[all …]
/linux/arch/powerpc/kernel/ptrace/
A Dptrace-decl.h67 int fpr_set(struct task_struct *target, const struct user_regset *regset,
75 int vsr_set(struct task_struct *target, const struct user_regset *regset,
81 int vr_active(struct task_struct *target, const struct user_regset *regset);
83 int vr_set(struct task_struct *target, const struct user_regset *regset,
91 int evr_set(struct task_struct *target, const struct user_regset *regset,
97 int gpr32_get_common(struct task_struct *target,
101 int gpr32_set_common(struct task_struct *target,
110 void flush_tmregs_to_thread(struct task_struct *tsk);
112 static inline void flush_tmregs_to_thread(struct task_struct *tsk) { } in flush_tmregs_to_thread()
173 int ptrace_get_debugreg(struct task_struct *child, unsigned long addr,
[all …]
/linux/include/linux/sched/
A Dtask.h13 struct task_struct;
49 extern struct task_struct init_task;
57 extern void sched_post_fork(struct task_struct *p,
59 extern void sched_dead(struct task_struct *p);
67 extern void release_task(struct task_struct * p);
70 struct task_struct *, unsigned long);
75 extern void exit_thread(struct task_struct *tsk);
83 extern void exit_files(struct task_struct *);
88 struct task_struct *fork_idle(int);
94 extern void free_task(struct task_struct *tsk);
[all …]
A Dsignal.h76 struct task_struct *task;
102 struct task_struct *curr_target;
118 struct task_struct *group_exit_task;
294 struct task_struct *task = current; in kernel_dequeue_signal()
322 , struct task_struct *t);
327 , struct task_struct *t);
339 struct task_struct *t);
352 extern void __wake_up_parent(struct task_struct *p, struct task_struct *parent);
688 bool same_thread_group(struct task_struct *p1, struct task_struct *p2) in same_thread_group()
693 static inline struct task_struct *next_thread(const struct task_struct *p) in next_thread()
[all …]
A Dcputime.h21 extern bool task_cputime(struct task_struct *t,
23 extern u64 task_gtime(struct task_struct *t);
25 static inline bool task_cputime(struct task_struct *t, in task_cputime()
33 static inline u64 task_gtime(struct task_struct *t) in task_gtime()
40 static inline void task_cputime_scaled(struct task_struct *t, in task_cputime_scaled()
48 static inline void task_cputime_scaled(struct task_struct *t, in task_cputime_scaled()
65 void thread_group_sample_cputime(struct task_struct *tsk, u64 *samples);
128 static inline void account_group_user_time(struct task_struct *tsk, in account_group_user_time()
149 static inline void account_group_system_time(struct task_struct *tsk, in account_group_system_time()
170 static inline void account_group_exec_runtime(struct task_struct *tsk, in account_group_exec_runtime()
[all …]
A Drt.h7 struct task_struct;
16 static inline int rt_task(struct task_struct *p) in rt_task()
21 static inline bool task_is_realtime(struct task_struct *tsk) in task_is_realtime()
36 static inline struct task_struct *rt_mutex_get_top_task(struct task_struct *p) in rt_mutex_get_top_task()
40 extern void rt_mutex_setprio(struct task_struct *p, struct task_struct *pi_task);
41 extern void rt_mutex_adjust_pi(struct task_struct *p);
42 static inline bool tsk_is_pi_blocked(struct task_struct *tsk) in tsk_is_pi_blocked()
47 static inline struct task_struct *rt_mutex_get_top_task(struct task_struct *task) in rt_mutex_get_top_task()
52 static inline bool tsk_is_pi_blocked(struct task_struct *tsk) in tsk_is_pi_blocked()
A Dtask_stack.h19 static inline void *task_stack_page(const struct task_struct *task) in task_stack_page()
26 static inline unsigned long *end_of_stack(const struct task_struct *task) in end_of_stack()
39 static inline void setup_thread_stack(struct task_struct *p, struct task_struct *org) in setup_thread_stack()
54 static inline unsigned long *end_of_stack(struct task_struct *p) in end_of_stack()
66 static inline void *try_get_task_stack(struct task_struct *tsk) in try_get_task_stack()
72 extern void put_task_stack(struct task_struct *tsk);
74 static inline void *try_get_task_stack(struct task_struct *tsk) in try_get_task_stack()
79 static inline void put_task_stack(struct task_struct *tsk) {} in put_task_stack()
95 static inline unsigned long stack_not_used(struct task_struct *p) in stack_not_used()
114 extern void set_task_stack_end_magic(struct task_struct *tsk);
/linux/arch/powerpc/include/asm/
A Dswitch_to.h12 struct task_struct;
15 extern struct task_struct *__switch_to(struct task_struct *,
16 struct task_struct *);
37 extern void giveup_all(struct task_struct *);
42 extern void giveup_fpu(struct task_struct *);
43 extern void save_fpu(struct task_struct *);
56 extern void giveup_altivec(struct task_struct *);
57 extern void save_altivec(struct task_struct *);
89 extern void giveup_spe(struct task_struct *);
90 extern void __giveup_spe(struct task_struct *);
[all …]
/linux/arch/mips/kernel/
A Dasm-offsets.c81 OFFSET(TASK_THREAD_INFO, task_struct, stack); in output_task_defines()
82 OFFSET(TASK_FLAGS, task_struct, flags); in output_task_defines()
83 OFFSET(TASK_MM, task_struct, mm); in output_task_defines()
84 OFFSET(TASK_PID, task_struct, pid); in output_task_defines()
111 OFFSET(THREAD_REG16, task_struct, thread.reg16); in output_thread_defines()
122 OFFSET(THREAD_STATUS, task_struct, in output_thread_defines()
125 OFFSET(THREAD_BVADDR, task_struct, \ in output_thread_defines()
127 OFFSET(THREAD_BUADDR, task_struct, \ in output_thread_defines()
129 OFFSET(THREAD_ECODE, task_struct, \ in output_thread_defines()
138 OFFSET(THREAD_FPU, task_struct, thread.fpu); in output_thread_fpu_defines()
[all …]
/linux/arch/powerpc/kernel/
A Dsignal.h17 struct task_struct *tsk);
20 struct task_struct *tsk);
39 struct task_struct *task);
41 struct task_struct *task);
52 struct task_struct *__t = task; \
62 struct task_struct *__t = task; \
72 struct task_struct *__t = task; \
82 struct task_struct *__t = task; \
93 struct task_struct *__t = task; \
195 struct task_struct *tsk);
[all …]
/linux/kernel/sched/
A Dstop_task.c14 select_task_rq_stop(struct task_struct *p, int cpu, int flags) in select_task_rq_stop()
20 balance_stop(struct rq *rq, struct task_struct *prev, struct rq_flags *rf) in balance_stop()
27 check_preempt_curr_stop(struct rq *rq, struct task_struct *p, int flags) in check_preempt_curr_stop()
37 static struct task_struct *pick_task_stop(struct rq *rq) in pick_task_stop()
45 static struct task_struct *pick_next_task_stop(struct rq *rq) in pick_next_task_stop()
47 struct task_struct *p = pick_task_stop(rq); in pick_next_task_stop()
56 enqueue_task_stop(struct rq *rq, struct task_struct *p, int flags) in enqueue_task_stop()
62 dequeue_task_stop(struct rq *rq, struct task_struct *p, int flags) in dequeue_task_stop()
74 struct task_struct *curr = rq->curr; in put_prev_task_stop()
103 static void switched_to_stop(struct rq *rq, struct task_struct *p) in switched_to_stop()
[all …]
A Dstats.h45 void __update_stats_wait_start(struct rq *rq, struct task_struct *p,
48 void __update_stats_wait_end(struct rq *rq, struct task_struct *p,
114 static inline void psi_enqueue(struct task_struct *p, bool wakeup) in psi_enqueue()
134 static inline void psi_dequeue(struct task_struct *p, bool sleep) in psi_dequeue()
156 static inline void psi_ttwu_dequeue(struct task_struct *p) in psi_ttwu_dequeue()
182 static inline void psi_sched_switch(struct task_struct *prev, in psi_sched_switch()
183 struct task_struct *next, in psi_sched_switch()
195 static inline void psi_ttwu_dequeue(struct task_struct *p) {} in psi_ttwu_dequeue()
196 static inline void psi_sched_switch(struct task_struct *prev, in psi_sched_switch()
197 struct task_struct *next, in psi_sched_switch()
[all …]
A Dsched.h981 struct task_struct *idle;
982 struct task_struct *stop;
1105 struct task_struct *core_pick;
1191 bool cfs_prio_less(struct task_struct *a, struct task_struct *b, bool fi);
1232 struct task_struct *p, in sched_group_cookie_match()
1298 struct task_struct *p, in sched_group_cookie_match()
1687 extern int migrate_swap(struct task_struct *p, struct task_struct *t,
2148 struct task_struct *task);
2838 struct task_struct *p) in uclamp_rq_util_with()
2887 struct task_struct *p) in uclamp_rq_util_with()
[all …]
/linux/arch/riscv/include/asm/
A Dswitch_to.h16 extern void __fstate_save(struct task_struct *save_to);
17 extern void __fstate_restore(struct task_struct *restore_from);
24 static inline void fstate_off(struct task_struct *task, in fstate_off()
30 static inline void fstate_save(struct task_struct *task, in fstate_save()
39 static inline void fstate_restore(struct task_struct *task, in fstate_restore()
48 static inline void __switch_to_aux(struct task_struct *prev, in __switch_to_aux()
49 struct task_struct *next) in __switch_to_aux()
71 extern struct task_struct *__switch_to(struct task_struct *,
72 struct task_struct *);
76 struct task_struct *__prev = (prev); \
[all …]
/linux/arch/csky/include/asm/
A Dswitch_to.h9 static inline void __switch_to_fpu(struct task_struct *prev, in __switch_to_fpu()
10 struct task_struct *next) in __switch_to_fpu()
16 static inline void __switch_to_fpu(struct task_struct *prev, in __switch_to_fpu()
17 struct task_struct *next) in __switch_to_fpu()
24 extern struct task_struct *__switch_to(struct task_struct *,
25 struct task_struct *);
29 struct task_struct *__prev = (prev); \
30 struct task_struct *__next = (next); \
/linux/arch/mips/include/asm/
A Dfpu.h45 extern void _save_fp(struct task_struct *);
46 extern void _restore_fp(struct task_struct *);
206 static inline bool init_fp_ctx(struct task_struct *target) in init_fp_ctx()
227 static inline void save_fp(struct task_struct *tsk) in save_fp()
233 static inline void restore_fp(struct task_struct *tsk) in restore_fp()
299 static inline bool init_fp_ctx(struct task_struct *target) in init_fp_ctx()
312 extern void save_fp(struct task_struct *tsk)
315 extern void _save_fp(struct task_struct *)
318 extern void restore_fp(struct task_struct *tsk)
321 extern void _restore_fp(struct task_struct *)
[all …]

Completed in 47 milliseconds

12345678910>>...51