Home
last modified time | relevance | path

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

12345678910>>...56

/kernel/linux/linux-5.10/arch/riscv/kernel/
Dasm-offsets.c16 OFFSET(TASK_THREAD_RA, task_struct, thread.ra); in asm_offsets()
17 OFFSET(TASK_THREAD_SP, task_struct, thread.sp); in asm_offsets()
18 OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]); in asm_offsets()
19 OFFSET(TASK_THREAD_S1, task_struct, thread.s[1]); in asm_offsets()
20 OFFSET(TASK_THREAD_S2, task_struct, thread.s[2]); in asm_offsets()
21 OFFSET(TASK_THREAD_S3, task_struct, thread.s[3]); in asm_offsets()
22 OFFSET(TASK_THREAD_S4, task_struct, thread.s[4]); in asm_offsets()
23 OFFSET(TASK_THREAD_S5, task_struct, thread.s[5]); in asm_offsets()
24 OFFSET(TASK_THREAD_S6, task_struct, thread.s[6]); in asm_offsets()
25 OFFSET(TASK_THREAD_S7, task_struct, thread.s[7]); in asm_offsets()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dvtime.h11 struct task_struct;
19 extern void vtime_task_switch(struct task_struct *prev);
44 extern void vtime_task_switch_generic(struct task_struct *prev);
46 static inline void vtime_task_switch(struct task_struct *prev) in vtime_task_switch()
56 static inline void vtime_task_switch(struct task_struct *prev) { } in vtime_task_switch()
64 extern void vtime_account_kernel(struct task_struct *tsk);
65 extern void vtime_account_idle(struct task_struct *tsk);
67 static inline void vtime_account_kernel(struct task_struct *tsk) { } in vtime_account_kernel()
71 extern void arch_vtime_task_switch(struct task_struct *tsk);
72 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.h20 extern int ptrace_access_vm(struct task_struct *tsk, unsigned long addr,
56 extern long arch_ptrace(struct task_struct *child, long request,
58 extern int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst, int len);
59 extern int ptrace_writedata(struct task_struct *tsk, char __user *src, unsigned long dst, int len);
60 extern void ptrace_disable(struct task_struct *);
61 extern int ptrace_request(struct task_struct *child, long request,
64 extern void __ptrace_link(struct task_struct *child,
65 struct task_struct *new_parent,
67 extern void __ptrace_unlink(struct task_struct *child);
68 extern void exit_ptrace(struct task_struct *tracer, struct list_head *dead);
[all …]
Ddelayacct.h66 extern void __delayacct_tsk_init(struct task_struct *);
67 extern void __delayacct_tsk_exit(struct task_struct *);
69 extern void __delayacct_blkio_end(struct task_struct *);
70 extern int __delayacct_add_tsk(struct taskstats *, struct task_struct *);
71 extern __u64 __delayacct_blkio_ticks(struct task_struct *);
77 static inline int delayacct_is_task_waiting_on_io(struct task_struct *p) in delayacct_is_task_waiting_on_io()
97 static inline void delayacct_tsk_init(struct task_struct *tsk) in delayacct_tsk_init()
108 static inline void delayacct_tsk_free(struct task_struct *tsk) in delayacct_tsk_free()
122 static inline void delayacct_blkio_end(struct task_struct *p) in delayacct_blkio_end()
130 struct task_struct *tsk) in delayacct_add_tsk()
[all …]
Dsched.h557 extern void sched_exit(struct task_struct *p);
558 extern int sched_set_init_task_load(struct task_struct *p, int init_load_pct);
559 extern u32 sched_get_init_task_load(struct task_struct *p);
560 extern void free_task_load_ptrs(struct task_struct *p);
599 static inline void sched_exit(struct task_struct *p) { } in sched_exit()
600 static inline void free_task_load_ptrs(struct task_struct *p) { } in free_task_load_ptrs()
754 struct task_struct { struct
786 struct task_struct *last_wakee; argument
982 struct task_struct __rcu *real_parent; argument
985 struct task_struct __rcu *parent; argument
[all …]
Dcgroup.h67 struct task_struct *cur_task;
110 int cgroup_attach_task_all(struct task_struct *from, struct task_struct *);
118 int task_cgroup_path(struct task_struct *task, char *buf, size_t buflen);
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);
[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()
Dkthread.h11 struct task_struct *kthread_create_on_node(int (*threadfn)(void *data),
31 struct task_struct *kthread_create_on_cpu(int (*threadfn)(void *data),
36 void kthread_set_per_cpu(struct task_struct *k, int cpu);
37 bool kthread_is_per_cpu(struct task_struct *k);
50 struct task_struct *__k \
57 void free_kthread_struct(struct task_struct *k);
58 void kthread_bind(struct task_struct *k, unsigned int cpu);
59 void kthread_bind_mask(struct task_struct *k, const struct cpumask *mask);
60 int kthread_stop(struct task_struct *k);
63 bool __kthread_should_park(struct task_struct *k);
[all …]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dswitch_to.h12 struct task_struct;
15 extern struct task_struct *__switch_to(struct task_struct *,
16 struct task_struct *);
19 extern struct task_struct *_switch(struct thread_struct *prev,
36 extern void flush_all_to_thread(struct task_struct *);
37 extern void giveup_all(struct task_struct *);
41 extern void flush_fp_to_thread(struct task_struct *);
42 extern void giveup_fpu(struct task_struct *);
43 extern void save_fpu(struct task_struct *);
49 static inline void save_fpu(struct task_struct *t) { } in save_fpu()
[all …]
/kernel/linux/linux-5.10/arch/parisc/kernel/
Dasm-offsets.c44 DEFINE(TASK_THREAD_INFO, offsetof(struct task_struct, stack)); in main()
45 DEFINE(TASK_STATE, offsetof(struct task_struct, state)); in main()
46 DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags)); in main()
47 DEFINE(TASK_SIGPENDING, offsetof(struct task_struct, pending)); in main()
48 DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace)); in main()
49 DEFINE(TASK_MM, offsetof(struct task_struct, mm)); in main()
50 DEFINE(TASK_PERSONALITY, offsetof(struct task_struct, personality)); in main()
51 DEFINE(TASK_PID, offsetof(struct task_struct, pid)); in main()
53 DEFINE(TASK_REGS, offsetof(struct task_struct, thread.regs)); in main()
54 DEFINE(TASK_PT_PSW, offsetof(struct task_struct, thread.regs.gr[ 0])); in main()
[all …]
/kernel/linux/linux-5.10/include/linux/sched/
Dtask.h13 struct task_struct;
48 extern struct task_struct init_task;
54 extern asmlinkage void schedule_tail(struct task_struct *prev);
55 extern void init_idle(struct task_struct *idle, int cpu);
57 extern int sched_fork(unsigned long clone_flags, struct task_struct *p);
58 extern void sched_post_fork(struct task_struct *p,
60 extern void sched_dead(struct task_struct *p);
68 extern void release_task(struct task_struct * p);
71 struct task_struct *, unsigned long);
76 extern void exit_thread(struct task_struct *tsk);
[all …]
Dsignal.h91 struct task_struct *curr_target;
107 struct task_struct *group_exit_task;
273 extern void flush_signals(struct task_struct *);
274 extern void ignore_signals(struct task_struct *);
275 extern void flush_signal_handlers(struct task_struct *, int force_default);
276 extern int dequeue_signal(struct task_struct *task,
281 struct task_struct *task = current; in kernel_dequeue_signal()
315 , struct task_struct *t);
322 , struct task_struct *t);
325 int send_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_sample_cputime(struct task_struct *tsk, u64 *samples);
[all …]
/kernel/linux/linux-5.10/arch/powerpc/kernel/ptrace/
Dptrace-decl.h67 int fpr_set(struct task_struct *target, const struct user_regset *regset,
73 int vsr_active(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,
89 int evr_active(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);
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/kernel/sched/
Dwalt.h38 static inline int exiting_task(struct task_struct *p) in exiting_task()
62 static inline bool is_new_task(struct task_struct *p) in is_new_task()
94 extern void reset_task_stats(struct task_struct *p);
97 extern void update_task_ravg(struct task_struct *p, struct rq *rq, int event,
112 walt_inc_cumulative_runnable_avg(struct rq *rq, struct task_struct *p) in walt_inc_cumulative_runnable_avg()
131 walt_dec_cumulative_runnable_avg(struct rq *rq, struct task_struct *p) in walt_dec_cumulative_runnable_avg()
147 extern void fixup_walt_sched_stats_common(struct rq *rq, struct task_struct *p,
149 extern void inc_rq_walt_stats(struct rq *rq, struct task_struct *p);
150 extern void dec_rq_walt_stats(struct rq *rq, struct task_struct *p);
151 extern void fixup_busy_time(struct task_struct *p, int new_cpu);
[all …]
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dsignal.h17 struct task_struct *tsk);
20 struct task_struct *tsk);
23 struct task_struct *task);
25 struct task_struct *task);
26 extern unsigned long copy_fpr_from_user(struct task_struct *task,
28 extern unsigned long copy_ckfpr_from_user(struct task_struct *task,
30 extern unsigned long get_tm_stackpointer(struct task_struct *tsk);
34 struct task_struct *task);
36 struct task_struct *task);
37 extern unsigned long copy_vsx_from_user(struct task_struct *task,
[all …]
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Dfpsimd.h35 struct task_struct;
40 extern void fpsimd_thread_switch(struct task_struct *next);
52 extern void fpsimd_flush_task_state(struct task_struct *target);
109 extern size_t sve_state_size(struct task_struct const *task);
111 extern void sve_alloc(struct task_struct *task);
112 extern void fpsimd_release_task(struct task_struct *task);
113 extern void fpsimd_sync_to_sve(struct task_struct *task);
114 extern void sve_sync_to_fpsimd(struct task_struct *task);
115 extern void sve_sync_from_fpsimd_zeropad(struct task_struct *task);
117 extern int sve_set_vector_length(struct task_struct *task,
[all …]
/kernel/linux/linux-5.10/arch/riscv/include/asm/
Dswitch_to.h15 extern void __fstate_save(struct task_struct *save_to);
16 extern void __fstate_restore(struct task_struct *restore_from);
23 static inline void fstate_off(struct task_struct *task, in fstate_off()
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()
66 extern struct task_struct *__switch_to(struct task_struct *,
67 struct task_struct *);
71 struct task_struct *__prev = (prev); \
[all …]
/kernel/linux/linux-5.10/kernel/sched/rtg/
Drtg.h15 void init_task_rtg(struct task_struct *p);
18 struct related_thread_group *task_related_thread_group(struct task_struct *p);
19 void update_group_nr_running(struct task_struct *p, int event, u64 wallclock);
21 void update_group_demand(struct task_struct *p, struct rq *rq,
27 void sched_update_rtg_tick(struct task_struct *p);
28 int preferred_cluster(struct sched_cluster *cluster, struct task_struct *p);
30 struct cpumask *find_rtg_target(struct task_struct *p);
31 int find_rtg_cpu(struct task_struct *p);
41 int sync_cgroup_colocation(struct task_struct *p, bool insert);
42 void add_new_task_to_grp(struct task_struct *new);
[all …]
/kernel/linux/linux-5.10/arch/csky/include/asm/
Dswitch_to.h10 static inline void __switch_to_fpu(struct task_struct *prev, in __switch_to_fpu()
11 struct task_struct *next) in __switch_to_fpu()
17 static inline void __switch_to_fpu(struct task_struct *prev, in __switch_to_fpu()
18 struct task_struct *next) in __switch_to_fpu()
25 extern struct task_struct *__switch_to(struct task_struct *,
26 struct task_struct *);
30 struct task_struct *__prev = (prev); \
31 struct task_struct *__next = (next); \
/kernel/linux/linux-5.10/include/asm-generic/
Dsyscall.h19 struct task_struct;
38 int syscall_get_nr(struct task_struct *task, struct pt_regs *regs);
56 void syscall_rollback(struct task_struct *task, struct pt_regs *regs);
68 long syscall_get_error(struct task_struct *task, struct pt_regs *regs);
81 long syscall_get_return_value(struct task_struct *task, struct pt_regs *regs);
98 void syscall_set_return_value(struct task_struct *task, struct pt_regs *regs,
113 void syscall_get_arguments(struct task_struct *task, struct pt_regs *regs,
128 void syscall_set_arguments(struct task_struct *task, struct pt_regs *regs,
143 int syscall_get_arch(struct task_struct *task);

12345678910>>...56