/kernel/linux/linux-5.10/arch/riscv/kernel/ |
H A D | asm-offsets.c | 16 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, threa in asm_offsets() [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | vtime.h | 11 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 *ts [all...] |
H A D | cn_proc.h | 23 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 *tas [all...] |
H A D | ptrace.h | 6 #include <linux/sched.h> /* For struct task_struct. */ 20 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 *chil [all...] |
/kernel/linux/linux-6.6/include/linux/sched/ |
H A D | task.h | 13 struct task_struct; 56 extern struct task_struct init_task; 60 extern asmlinkage void schedule_tail(struct task_struct *prev); 61 extern void init_idle(struct task_struct *idle, int cpu); 63 extern int sched_fork(unsigned long clone_flags, struct task_struct *p); 64 extern void sched_cgroup_fork(struct task_struct *p, struct kernel_clone_args *kargs); 65 extern void sched_post_fork(struct task_struct *p); 66 extern void sched_dead(struct task_struct *p); 76 extern void release_task(struct task_struct * p); 78 extern int copy_thread(struct task_struct *, cons [all...] |
H A D | signal.h | 76 struct task_struct *task; 103 struct task_struct *curr_target; 115 struct task_struct *group_exec_task; 243 struct rw_semaphore exec_update_lock; /* Held while task_struct is 275 extern void flush_signals(struct task_struct *); 276 extern void ignore_signals(struct task_struct *); 277 extern void flush_signal_handlers(struct task_struct *, int force_default); 278 extern int dequeue_signal(struct task_struct *task, sigset_t *mask, 283 struct task_struct *task = current; in kernel_dequeue_signal() 314 , struct task_struct * [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | vtime.h | 16 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); 26 extern void vtime_init_idle(struct task_struct *tsk, int cpu); 28 static inline void vtime_user_enter(struct task_struct *tsk) { } in vtime_user_enter() 29 static inline void vtime_user_exit(struct task_struct *ts in vtime_user_enter() [all...] |
H A D | cn_proc.h | 23 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 *tas [all...] |
H A D | sched.h | 6 * Define 'struct task_struct' and provide the main scheduler 42 /* task_struct member predeclarations (sorted alphabetically): */ 244 * task when blocking on the lock is saved in task_struct::saved_state and 246 * serialized by task_struct::pi_lock against try_to_wake_up(). Any non RT 248 * redirected to operate on task_struct::saved_state to ensure that these 249 * are not dropped. On restore task_struct::saved_state is set to 643 extern void sched_exit(struct task_struct *p); 644 extern int sched_set_init_task_load(struct task_struct *p, int init_load_pct); 645 extern u32 sched_get_init_task_load(struct task_struct *p); 646 extern void free_task_load_ptrs(struct task_struct * 843 struct task_struct { global() struct [all...] |
H A D | ptrace.h | 6 #include <linux/sched.h> /* For struct task_struct. */ 20 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 *chil [all...] |
H A D | kthread.h | 11 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 get_kthread_comm(char *buf, size_t buf_size, struct task_struct *tsk); 37 bool set_kthread_struct(struct task_struct *p); 39 void kthread_set_per_cpu(struct task_struct *k, int cpu); 40 bool kthread_is_per_cpu(struct task_struct *k); 53 struct task_struct *__k \ 72 static inline struct task_struct * 76 struct task_struct *p; in kthread_run_on_cpu() 85 void free_kthread_struct(struct task_struct * [all...] |
/kernel/linux/linux-5.10/arch/parisc/kernel/ |
H A D | asm-offsets.c | 44 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, threa in main() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | switch_to.h | 12 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 *); [all...] |
/kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
H A D | switch_to.h | 12 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 *); [all...] |
/kernel/linux/linux-6.6/arch/parisc/kernel/ |
H A D | asm-offsets.c | 42 DEFINE(TASK_TI_FLAGS, offsetof(struct task_struct, thread_info.flags)); in main() 44 DEFINE(TASK_TI_CPU, offsetof(struct task_struct, thread_info.cpu)); in main() 46 DEFINE(TASK_STACK, offsetof(struct task_struct, stack)); in main() 47 DEFINE(TASK_PAGEFAULT_DISABLED, offsetof(struct task_struct, pagefault_disabled)); in main() 49 DEFINE(TASK_REGS, offsetof(struct task_struct, thread.regs)); in main() 50 DEFINE(TASK_PT_PSW, offsetof(struct task_struct, thread.regs.gr[ 0])); in main() 51 DEFINE(TASK_PT_GR1, offsetof(struct task_struct, thread.regs.gr[ 1])); in main() 52 DEFINE(TASK_PT_GR2, offsetof(struct task_struct, thread.regs.gr[ 2])); in main() 53 DEFINE(TASK_PT_GR3, offsetof(struct task_struct, thread.regs.gr[ 3])); in main() 54 DEFINE(TASK_PT_GR4, offsetof(struct task_struct, threa in main() [all...] |
/kernel/linux/linux-5.10/include/linux/sched/ |
H A D | task.h | 13 struct task_struct; 49 extern struct task_struct init_task; 55 extern asmlinkage void schedule_tail(struct task_struct *prev); 56 extern void init_idle(struct task_struct *idle, int cpu); 58 extern int sched_fork(unsigned long clone_flags, struct task_struct *p); 59 extern void sched_post_fork(struct task_struct *p, 61 extern void sched_dead(struct task_struct *p); 71 extern void release_task(struct task_struct * p); 74 struct task_struct *, unsigned long); 79 extern void exit_thread(struct task_struct *ts [all...] |
H A D | signal.h | 91 struct task_struct *curr_target; 107 struct task_struct *group_exit_task; 233 struct rw_semaphore exec_update_lock; /* Held while task_struct is 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 * [all...] |
H A D | rt.h | 7 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_tas [all...] |
/kernel/linux/linux-5.10/arch/powerpc/kernel/ptrace/ |
H A D | ptrace-decl.h | 67 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 *ts [all...] |
/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | asm-offsets.c | 23 OFFSET(TASK_THREAD_RA, task_struct, thread.ra); in asm_offsets() 24 OFFSET(TASK_THREAD_SP, task_struct, thread.sp); in asm_offsets() 25 OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]); in asm_offsets() 26 OFFSET(TASK_THREAD_S1, task_struct, thread.s[1]); in asm_offsets() 27 OFFSET(TASK_THREAD_S2, task_struct, thread.s[2]); in asm_offsets() 28 OFFSET(TASK_THREAD_S3, task_struct, thread.s[3]); in asm_offsets() 29 OFFSET(TASK_THREAD_S4, task_struct, thread.s[4]); in asm_offsets() 30 OFFSET(TASK_THREAD_S5, task_struct, thread.s[5]); in asm_offsets() 31 OFFSET(TASK_THREAD_S6, task_struct, thread.s[6]); in asm_offsets() 32 OFFSET(TASK_THREAD_S7, task_struct, threa in asm_offsets() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/kernel/ptrace/ |
H A D | ptrace-decl.h | 73 int fpr_set(struct task_struct *target, const struct user_regset *regset, 79 int vsr_active(struct task_struct *target, const struct user_regset *regset); 81 int vsr_set(struct task_struct *target, const struct user_regset *regset, 87 int vr_active(struct task_struct *target, const struct user_regset *regset); 89 int vr_set(struct task_struct *target, const struct user_regset *regset, 95 int evr_active(struct task_struct *target, const struct user_regset *regset); 97 int evr_set(struct task_struct *target, const struct user_regset *regset, 103 int gpr32_get_common(struct task_struct *target, 107 int gpr32_set_common(struct task_struct *target, 116 void flush_tmregs_to_thread(struct task_struct *ts [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | task_kfunc_failure.c | 16 * TP_PROTO(struct task_struct *p, u64 clone_flags) 19 static struct __tasks_kfunc_map_value *insert_lookup_task(struct task_struct *task) in insert_lookup_task() 32 int BPF_PROG(task_kfunc_acquire_untrusted, struct task_struct *task, u64 clone_flags) in BPF_PROG() 34 struct task_struct *acquired; in BPF_PROG() 52 __failure __msg("arg#0 pointer type STRUCT task_struct must point") 53 int BPF_PROG(task_kfunc_acquire_fp, struct task_struct *task, u64 clone_flags) in BPF_PROG() 55 struct task_struct *acquired, *stack_task = (struct task_struct *)&clone_flags; in BPF_PROG() 58 acquired = bpf_task_acquire((struct task_struct *)&stack_task); in BPF_PROG() 69 int BPF_PROG(task_kfunc_acquire_unsafe_kretprobe, struct task_struct *tas [all...] |
H A D | task_kfunc_success.c | 17 * TP_PROTO(struct task_struct *p, u64 clone_flags) 20 struct task_struct *bpf_task_acquire(struct task_struct *p) __ksym __weak; 22 struct task_struct *bpf_task_acquire___one(struct task_struct *task) __ksym __weak; 24 struct task_struct *bpf_task_acquire___two(struct task_struct *p, void *ctx) __ksym __weak; 26 struct task_struct *bpf_task_acquire___three(void *ctx) __ksym __weak; 38 static int test_acquire_release(struct task_struct *task) in test_acquire_release() 40 struct task_struct *acquire in test_acquire_release() [all...] |
/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | asm-offsets.c | 3 * asm-offsets.c: Calculate pt_regs and task_struct offsets. 80 COMMENT("MIPS task_struct offsets."); in output_task_defines() 81 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, threa in output_thread_defines() [all...] |
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | asm-offsets.c | 3 * asm-offsets.c: Calculate pt_regs and task_struct offsets. 82 COMMENT("MIPS task_struct offsets."); in output_task_defines() 83 OFFSET(TASK_THREAD_INFO, task_struct, stack); in output_task_defines() 84 OFFSET(TASK_FLAGS, task_struct, flags); in output_task_defines() 85 OFFSET(TASK_MM, task_struct, mm); in output_task_defines() 86 OFFSET(TASK_PID, task_struct, pid); in output_task_defines() 88 OFFSET(TASK_STACK_CANARY, task_struct, stack_canary); in output_task_defines() 90 DEFINE(TASK_STRUCT_SIZE, sizeof(struct task_struct)); in output_task_defines() 115 OFFSET(THREAD_REG16, task_struct, thread.reg16); in output_thread_defines() 116 OFFSET(THREAD_REG17, task_struct, threa in output_thread_defines() [all...] |