Home
last modified time | relevance | path

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

12345678910>>...51

/Linux-v4.19/arch/riscv/kernel/
Dasm-offsets.c24 OFFSET(TASK_THREAD_RA, task_struct, thread.ra); in asm_offsets()
25 OFFSET(TASK_THREAD_SP, task_struct, thread.sp); in asm_offsets()
26 OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]); in asm_offsets()
27 OFFSET(TASK_THREAD_S1, task_struct, thread.s[1]); in asm_offsets()
28 OFFSET(TASK_THREAD_S2, task_struct, thread.s[2]); in asm_offsets()
29 OFFSET(TASK_THREAD_S3, task_struct, thread.s[3]); in asm_offsets()
30 OFFSET(TASK_THREAD_S4, task_struct, thread.s[4]); in asm_offsets()
31 OFFSET(TASK_THREAD_S5, task_struct, thread.s[5]); in asm_offsets()
32 OFFSET(TASK_THREAD_S6, task_struct, thread.s[6]); in asm_offsets()
33 OFFSET(TASK_THREAD_S7, task_struct, thread.s[7]); in asm_offsets()
[all …]
/Linux-v4.19/include/linux/
Dvtime.h11 struct task_struct;
50 extern void vtime_task_switch(struct task_struct *prev);
52 extern void vtime_common_task_switch(struct task_struct *prev);
53 static inline void vtime_task_switch(struct task_struct *prev) in vtime_task_switch()
60 extern void vtime_account_system(struct task_struct *tsk);
61 extern void vtime_account_idle(struct task_struct *tsk);
65 static inline void vtime_task_switch(struct task_struct *prev) { } in vtime_task_switch()
66 static inline void vtime_account_system(struct task_struct *tsk) { } in vtime_account_system()
70 extern void arch_vtime_task_switch(struct task_struct *tsk);
71 extern void vtime_user_enter(struct task_struct *tsk);
[all …]
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) in proc_fork_connector()
35 static inline void proc_exec_connector(struct task_struct *task) in proc_exec_connector()
[all …]
Dptrace.h13 extern int ptrace_access_vm(struct task_struct *tsk, unsigned long addr,
49 extern long arch_ptrace(struct task_struct *child, long request,
51 extern int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst, int len);
52 extern int ptrace_writedata(struct task_struct *tsk, char __user *src, unsigned long dst, int len);
53 extern void ptrace_disable(struct task_struct *);
54 extern int ptrace_request(struct task_struct *child, long request,
57 extern void __ptrace_link(struct task_struct *child,
58 struct task_struct *new_parent,
60 extern void __ptrace_unlink(struct task_struct *child);
61 extern void exit_ptrace(struct task_struct *tracer, struct list_head *dead);
[all …]
Ddelayacct.h71 extern void __delayacct_tsk_init(struct task_struct *);
72 extern void __delayacct_tsk_exit(struct task_struct *);
74 extern void __delayacct_blkio_end(struct task_struct *);
75 extern int __delayacct_add_tsk(struct taskstats *, struct task_struct *);
76 extern __u64 __delayacct_blkio_ticks(struct task_struct *);
80 static inline int delayacct_is_task_waiting_on_io(struct task_struct *p) in delayacct_is_task_waiting_on_io()
100 static inline void delayacct_tsk_init(struct task_struct *tsk) in delayacct_tsk_init()
111 static inline void delayacct_tsk_free(struct task_struct *tsk) in delayacct_tsk_free()
125 static inline void delayacct_blkio_end(struct task_struct *p) in delayacct_blkio_end()
133 struct task_struct *tsk) in delayacct_add_tsk()
[all …]
Dsched.h593 struct task_struct { struct
625 struct task_struct *last_wakee; argument
760 struct task_struct __rcu *real_parent; argument
763 struct task_struct __rcu *parent; argument
770 struct task_struct *group_leader; argument
905 struct task_struct *pi_top_task; argument
1178 struct task_struct *oom_reaper_list; argument
1212 static inline struct pid *task_pid(struct task_struct *task) in task_pid()
1228 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, struct pid_namespace *ns);
1230 static inline pid_t task_pid_nr(struct task_struct *tsk) in task_pid_nr()
[all …]
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()
Dcgroup.h63 struct task_struct *cur_task;
104 int cgroup_attach_task_all(struct task_struct *from, struct task_struct *);
112 int task_cgroup_path(struct task_struct *task, char *buf, size_t buflen);
115 struct pid *pid, struct task_struct *tsk);
117 void cgroup_fork(struct task_struct *p);
118 extern int cgroup_can_fork(struct task_struct *p);
119 extern void cgroup_cancel_fork(struct task_struct *p);
120 extern void cgroup_post_fork(struct task_struct *p);
121 void cgroup_exit(struct task_struct *p);
122 void cgroup_free(struct task_struct *p);
[all …]
/Linux-v4.19/arch/powerpc/include/asm/
Dswitch_to.h11 struct task_struct;
14 extern struct task_struct *__switch_to(struct task_struct *,
15 struct task_struct *);
18 extern struct task_struct *_switch(struct thread_struct *prev,
25 extern void flush_all_to_thread(struct task_struct *);
26 extern void giveup_all(struct task_struct *);
30 extern void flush_fp_to_thread(struct task_struct *);
31 extern void giveup_fpu(struct task_struct *);
32 extern void save_fpu(struct task_struct *);
38 static inline void save_fpu(struct task_struct *t) { } in save_fpu()
[all …]
/Linux-v4.19/include/linux/sched/
Dtask.h12 struct task_struct;
26 extern struct task_struct init_task;
32 extern asmlinkage void schedule_tail(struct task_struct *prev);
33 extern void init_idle(struct task_struct *idle, int cpu);
35 extern int sched_fork(unsigned long clone_flags, struct task_struct *p);
36 extern void sched_dead(struct task_struct *p);
42 extern void release_task(struct task_struct * p);
46 struct task_struct *, unsigned long);
49 struct task_struct *);
55 struct task_struct *p, unsigned long tls) in copy_thread_tls()
[all …]
Dsignal.h93 struct task_struct *curr_target;
109 struct task_struct *group_exit_task;
270 extern void flush_signals(struct task_struct *);
271 extern void ignore_signals(struct task_struct *);
272 extern void flush_signal_handlers(struct task_struct *, int force_default);
273 extern int dequeue_signal(struct task_struct *tsk, sigset_t *mask, siginfo_t *info);
277 struct task_struct *tsk = current; in kernel_dequeue_signal()
311 , struct task_struct *t);
315 , struct task_struct *t);
317 int force_sig_mceerr(int code, void __user *, short, struct task_struct *);
[all …]
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()
Dcputime.h21 extern void task_cputime(struct task_struct *t,
23 extern u64 task_gtime(struct task_struct *t);
25 static inline void task_cputime(struct task_struct *t, in task_cputime()
32 static inline u64 task_gtime(struct task_struct *t) in task_gtime()
39 static inline void task_cputime_scaled(struct task_struct *t, in task_cputime_scaled()
47 static inline void task_cputime_scaled(struct task_struct *t, in task_cputime_scaled()
55 extern void task_cputime_adjusted(struct task_struct *p, u64 *ut, u64 *st);
56 extern void thread_group_cputime_adjusted(struct task_struct *p, u64 *ut, u64 *st);
63 void thread_group_cputime(struct task_struct *tsk, struct task_cputime *times);
64 void thread_group_cputimer(struct task_struct *tsk, struct task_cputime *times);
[all …]
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()
35 static inline void setup_thread_stack(struct task_struct *p, struct task_struct *org) in setup_thread_stack()
50 static inline unsigned long *end_of_stack(struct task_struct *p) in end_of_stack()
62 static inline void *try_get_task_stack(struct task_struct *tsk) in try_get_task_stack()
68 extern void put_task_stack(struct task_struct *tsk);
70 static inline void *try_get_task_stack(struct task_struct *tsk) in try_get_task_stack()
75 static inline void put_task_stack(struct task_struct *tsk) {} in put_task_stack()
91 static inline unsigned long stack_not_used(struct task_struct *p) in stack_not_used()
110 extern void set_task_stack_end_magic(struct task_struct *tsk);
Dautogroup.h6 struct task_struct;
11 extern void sched_autogroup_create_attach(struct task_struct *p);
12 extern void sched_autogroup_detach(struct task_struct *p);
15 extern void sched_autogroup_exit_task(struct task_struct *p);
17 extern void proc_sched_autogroup_show_task(struct task_struct *p, struct seq_file *m);
18 extern int proc_sched_autogroup_set_nice(struct task_struct *p, int nice);
21 static inline void sched_autogroup_create_attach(struct task_struct *p) { } in sched_autogroup_create_attach()
22 static inline void sched_autogroup_detach(struct task_struct *p) { } in sched_autogroup_detach()
25 static inline void sched_autogroup_exit_task(struct task_struct *p) { } in sched_autogroup_exit_task()
Dxacct.h12 static inline void add_rchar(struct task_struct *tsk, ssize_t amt) in add_rchar()
17 static inline void add_wchar(struct task_struct *tsk, ssize_t amt) in add_wchar()
22 static inline void inc_syscr(struct task_struct *tsk) in inc_syscr()
27 static inline void inc_syscw(struct task_struct *tsk) in inc_syscw()
32 static inline void add_rchar(struct task_struct *tsk, ssize_t amt) in add_rchar()
36 static inline void add_wchar(struct task_struct *tsk, ssize_t amt) in add_wchar()
40 static inline void inc_syscr(struct task_struct *tsk) in inc_syscr()
44 static inline void inc_syscw(struct task_struct *tsk) in inc_syscw()
/Linux-v4.19/arch/parisc/kernel/
Dasm-offsets.c57 DEFINE(TASK_THREAD_INFO, offsetof(struct task_struct, stack)); in main()
58 DEFINE(TASK_STATE, offsetof(struct task_struct, state)); in main()
59 DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags)); in main()
60 DEFINE(TASK_SIGPENDING, offsetof(struct task_struct, pending)); in main()
61 DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace)); in main()
62 DEFINE(TASK_MM, offsetof(struct task_struct, mm)); in main()
63 DEFINE(TASK_PERSONALITY, offsetof(struct task_struct, personality)); in main()
64 DEFINE(TASK_PID, offsetof(struct task_struct, pid)); in main()
66 DEFINE(TASK_REGS, offsetof(struct task_struct, thread.regs)); in main()
67 DEFINE(TASK_PT_PSW, offsetof(struct task_struct, thread.regs.gr[ 0])); in main()
[all …]
/Linux-v4.19/arch/ia64/include/asm/
Dperfmon.h18 extern void pfm_save_regs (struct task_struct *);
19 extern void pfm_load_regs (struct task_struct *);
21 extern void pfm_exit_thread(struct task_struct *);
22 extern int pfm_use_debug_registers(struct task_struct *);
23 extern int pfm_release_debug_registers(struct task_struct *);
24 extern void pfm_syst_wide_update_task(struct task_struct *, unsigned long info, int is_ctxswin);
25 extern void pfm_inherit(struct task_struct *task, struct pt_regs *regs);
70 int (*fmt_validate)(struct task_struct *task, unsigned int flags, int cpu, void *arg);
71 …int (*fmt_getsize)(struct task_struct *task, unsigned int flags, int cpu, void *arg, unsigned lon…
72 int (*fmt_init)(struct task_struct *task, void *buf, unsigned int flags, int cpu, void *arg);
[all …]
/Linux-v4.19/arch/mips/kernel/
Dasm-offsets.c81 OFFSET(TASK_STATE, task_struct, state); in output_task_defines()
82 OFFSET(TASK_THREAD_INFO, task_struct, stack); in output_task_defines()
83 OFFSET(TASK_FLAGS, task_struct, flags); in output_task_defines()
84 OFFSET(TASK_MM, task_struct, mm); in output_task_defines()
85 OFFSET(TASK_PID, task_struct, pid); in output_task_defines()
87 OFFSET(TASK_STACK_CANARY, task_struct, stack_canary); in output_task_defines()
89 DEFINE(TASK_STRUCT_SIZE, sizeof(struct task_struct)); in output_task_defines()
113 OFFSET(THREAD_REG16, task_struct, thread.reg16); in output_thread_defines()
114 OFFSET(THREAD_REG17, task_struct, thread.reg17); in output_thread_defines()
115 OFFSET(THREAD_REG18, task_struct, thread.reg18); in output_thread_defines()
[all …]
/Linux-v4.19/arch/powerpc/kernel/
Dsignal.h19 struct task_struct *tsk);
22 struct task_struct *tsk);
25 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_ckfpr_from_user(struct task_struct *task,
32 extern unsigned long get_tm_stackpointer(struct task_struct *tsk);
36 struct task_struct *task);
38 struct task_struct *task);
39 extern unsigned long copy_vsx_from_user(struct task_struct *task,
[all …]
/Linux-v4.19/arch/arm64/include/asm/
Dfpsimd.h43 struct task_struct;
50 extern void fpsimd_thread_switch(struct task_struct *next);
61 extern void fpsimd_flush_task_state(struct task_struct *target);
93 extern size_t sve_state_size(struct task_struct const *task);
95 extern void sve_alloc(struct task_struct *task);
96 extern void fpsimd_release_task(struct task_struct *task);
97 extern void fpsimd_sync_to_sve(struct task_struct *task);
98 extern void sve_sync_to_fpsimd(struct task_struct *task);
99 extern void sve_sync_from_fpsimd_zeropad(struct task_struct *task);
101 extern int sve_set_vector_length(struct task_struct *task,
[all …]
/Linux-v4.19/arch/riscv/include/asm/
Dswitch_to.h21 extern void __fstate_save(struct task_struct *save_to);
22 extern void __fstate_restore(struct task_struct *restore_from);
29 static inline void fstate_save(struct task_struct *task, in fstate_save()
38 static inline void fstate_restore(struct task_struct *task, in fstate_restore()
47 static inline void __switch_to_aux(struct task_struct *prev, in __switch_to_aux()
48 struct task_struct *next) in __switch_to_aux()
58 extern struct task_struct *__switch_to(struct task_struct *,
59 struct task_struct *);
63 struct task_struct *__prev = (prev); \
64 struct task_struct *__next = (next); \
/Linux-v4.19/kernel/sched/
Dstop_task.c14 select_task_rq_stop(struct task_struct *p, int cpu, int sd_flag, int flags) in select_task_rq_stop()
21 check_preempt_curr_stop(struct rq *rq, struct task_struct *p, int flags) in check_preempt_curr_stop()
26 static struct task_struct *
27 pick_next_task_stop(struct rq *rq, struct task_struct *prev, struct rq_flags *rf) in pick_next_task_stop()
29 struct task_struct *stop = rq->stop; in pick_next_task_stop()
42 enqueue_task_stop(struct rq *rq, struct task_struct *p, int flags) in enqueue_task_stop()
48 dequeue_task_stop(struct rq *rq, struct task_struct *p, int flags) in dequeue_task_stop()
58 static void put_prev_task_stop(struct rq *rq, struct task_struct *prev) in put_prev_task_stop()
60 struct task_struct *curr = rq->curr; in put_prev_task_stop()
85 static void task_tick_stop(struct rq *rq, struct task_struct *curr, int queued) in task_tick_stop()
[all …]
/Linux-v4.19/arch/x86/include/asm/
Dswitch_to.h7 struct task_struct; /* one of the stranger aspects of C forward declarations */
9 struct task_struct *__switch_to_asm(struct task_struct *prev,
10 struct task_struct *next);
12 __visible struct task_struct *__switch_to(struct task_struct *prev,
13 struct task_struct *next);
15 void __switch_to_xtra(struct task_struct *prev_p, struct task_struct *next_p,
19 static inline void prepare_switch_to(struct task_struct *next) in prepare_switch_to()
90 static inline void update_task_stack(struct task_struct *task) in update_task_stack()
/Linux-v4.19/kernel/locking/
Drtmutex_common.h30 struct task_struct *task;
65 static inline int task_has_pi_waiters(struct task_struct *p) in task_has_pi_waiters()
71 task_top_pi_waiter(struct task_struct *p) in task_top_pi_waiter()
90 static inline int task_has_pi_waiters(struct task_struct *p) in task_has_pi_waiters()
96 task_top_pi_waiter(struct task_struct *p) in task_top_pi_waiter()
108 static inline struct task_struct *rt_mutex_owner(struct rt_mutex *lock) in rt_mutex_owner()
112 return (struct task_struct *) (owner & ~RT_MUTEX_HAS_WAITERS); in rt_mutex_owner()
133 extern struct task_struct *rt_mutex_next_owner(struct rt_mutex *lock);
135 struct task_struct *proxy_owner);
137 struct task_struct *proxy_owner);
[all …]

12345678910>>...51