Symbol: thread_struct
arch/arc/kernel/asm-offsets.c
24
DEFINE(THREAD_CALLEE_REG, offsetof(struct thread_struct, callee_reg));
arch/arc/kernel/asm-offsets.c
26
offsetof(struct thread_struct, fault_address));
arch/arm/kernel/ptrace.c
384
struct thread_struct *t = &tsk->thread;
arch/arm64/include/asm/fpsimd.h
104
static inline bool thread_sm_enabled(struct thread_struct *thread)
arch/arm64/include/asm/fpsimd.h
109
static inline bool thread_za_enabled(struct thread_struct *thread)
arch/arm64/include/asm/fpsimd.h
125
static inline void *sve_pffr(struct thread_struct *thread)
arch/arm64/include/asm/fpsimd.h
137
static inline void *thread_zt_state(struct thread_struct *thread)
arch/arm64/include/asm/processor.h
204
static inline unsigned int thread_get_vl(struct thread_struct *thread,
arch/arm64/include/asm/processor.h
210
static inline unsigned int thread_get_sve_vl(struct thread_struct *thread)
arch/arm64/include/asm/processor.h
215
static inline unsigned int thread_get_sme_vl(struct thread_struct *thread)
arch/arm64/include/asm/processor.h
220
static inline unsigned int thread_get_cur_vl(struct thread_struct *thread)
arch/arm64/include/asm/processor.h
270
BUILD_BUG_ON(sizeof_field(struct thread_struct, uw) !=
arch/arm64/include/asm/processor.h
271
sizeof_field(struct thread_struct, uw.tp_value) +
arch/arm64/include/asm/processor.h
272
sizeof_field(struct thread_struct, uw.tp2_value) +
arch/arm64/include/asm/processor.h
273
sizeof_field(struct thread_struct, uw.fpmr) +
arch/arm64/include/asm/processor.h
274
sizeof_field(struct thread_struct, uw.pad) +
arch/arm64/include/asm/processor.h
275
sizeof_field(struct thread_struct, uw.fpsimd_state));
arch/arm64/include/asm/processor.h
277
*offset = offsetof(struct thread_struct, uw);
arch/arm64/include/asm/processor.h
278
*size = sizeof_field(struct thread_struct, uw);
arch/arm64/kernel/ptrace.c
210
struct thread_struct *t = &tsk->thread;
arch/csky/kernel/asm-offsets.c
21
DEFINE(THREAD_KSP, offsetof(struct thread_struct, sp));
arch/csky/kernel/asm-offsets.c
22
DEFINE(THREAD_FESR, offsetof(struct thread_struct, user_fp.fesr));
arch/csky/kernel/asm-offsets.c
23
DEFINE(THREAD_FCR, offsetof(struct thread_struct, user_fp.fcr));
arch/csky/kernel/asm-offsets.c
24
DEFINE(THREAD_FPREG, offsetof(struct thread_struct, user_fp.vr));
arch/hexagon/include/asm/switch_to.h
11
struct thread_struct;
arch/hexagon/kernel/asm-offsets.c
89
OFFSET(_THREAD_STRUCT_SWITCH_SP, thread_struct, switch_sp);
arch/loongarch/kernel/hw_breakpoint.c
169
struct thread_struct *t = &tsk->thread;
arch/loongarch/kernel/ptrace.c
1045
struct thread_struct *thread = &tsk->thread;
arch/m68k/kernel/asm-offsets.c
32
DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp));
arch/m68k/kernel/asm-offsets.c
33
DEFINE(THREAD_USP, offsetof(struct thread_struct, usp));
arch/m68k/kernel/asm-offsets.c
34
DEFINE(THREAD_SR, offsetof(struct thread_struct, sr));
arch/m68k/kernel/asm-offsets.c
35
DEFINE(THREAD_FC, offsetof(struct thread_struct, fc));
arch/m68k/kernel/asm-offsets.c
36
DEFINE(THREAD_CRP, offsetof(struct thread_struct, crp));
arch/m68k/kernel/asm-offsets.c
37
DEFINE(THREAD_ESP0, offsetof(struct thread_struct, esp0));
arch/m68k/kernel/asm-offsets.c
38
DEFINE(THREAD_FPREG, offsetof(struct thread_struct, fp));
arch/m68k/kernel/asm-offsets.c
39
DEFINE(THREAD_FPCNTL, offsetof(struct thread_struct, fpcntl));
arch/m68k/kernel/asm-offsets.c
40
DEFINE(THREAD_FPSTATE, offsetof(struct thread_struct, fpstate));
arch/microblaze/kernel/asm-offsets.c
81
DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp));
arch/microblaze/kernel/asm-offsets.c
84
DEFINE(PGDIR, offsetof(struct thread_struct, pgdir));
arch/mips/kernel/process.c
531
struct thread_struct *t = &tsk->thread;
arch/nios2/kernel/asm-offsets.c
22
OFFSET(THREAD_KSP, thread_struct, ksp);
arch/nios2/kernel/asm-offsets.c
23
OFFSET(THREAD_KPSR, thread_struct, kpsr);
arch/powerpc/include/asm/switch_to.h
11
struct thread_struct;
arch/powerpc/include/asm/switch_to.h
19
extern struct task_struct *_switch(struct thread_struct *prev,
arch/powerpc/include/asm/switch_to.h
20
struct thread_struct *next);
arch/powerpc/include/asm/tm.h
13
extern void tm_reclaim(struct thread_struct *thread,
arch/powerpc/include/asm/tm.h
16
extern void tm_recheckpoint(struct thread_struct *thread);
arch/powerpc/include/asm/tm.h
17
extern void tm_save_sprs(struct thread_struct *thread);
arch/powerpc/include/asm/tm.h
18
extern void tm_restore_sprs(struct thread_struct *thread);
arch/powerpc/kernel/asm-offsets.c
102
OFFSET(KSP, thread_struct, ksp);
arch/powerpc/kernel/asm-offsets.c
103
OFFSET(PT_REGS, thread_struct, regs);
arch/powerpc/kernel/asm-offsets.c
105
OFFSET(THREAD_NORMSAVES, thread_struct, normsave[0]);
arch/powerpc/kernel/asm-offsets.c
108
OFFSET(THREAD_FPEXC_MODE, thread_struct, fpexc_mode);
arch/powerpc/kernel/asm-offsets.c
109
OFFSET(THREAD_FPSTATE, thread_struct, fp_state.fpr);
arch/powerpc/kernel/asm-offsets.c
110
OFFSET(THREAD_FPSAVEAREA, thread_struct, fp_save_area);
arch/powerpc/kernel/asm-offsets.c
113
OFFSET(THREAD_LOAD_FP, thread_struct, load_fp);
arch/powerpc/kernel/asm-offsets.c
115
OFFSET(THREAD_VRSTATE, thread_struct, vr_state.vr);
arch/powerpc/kernel/asm-offsets.c
116
OFFSET(THREAD_VRSAVEAREA, thread_struct, vr_save_area);
arch/powerpc/kernel/asm-offsets.c
117
OFFSET(THREAD_USED_VR, thread_struct, used_vr);
arch/powerpc/kernel/asm-offsets.c
119
OFFSET(THREAD_LOAD_VEC, thread_struct, load_vec);
arch/powerpc/kernel/asm-offsets.c
122
OFFSET(THREAD_USED_VSR, thread_struct, used_vsr);
arch/powerpc/kernel/asm-offsets.c
125
OFFSET(KSP_VSID, thread_struct, ksp_vsid);
arch/powerpc/kernel/asm-offsets.c
127
OFFSET(PGDIR, thread_struct, pgdir);
arch/powerpc/kernel/asm-offsets.c
128
OFFSET(SRR0, thread_struct, srr0);
arch/powerpc/kernel/asm-offsets.c
129
OFFSET(SRR1, thread_struct, srr1);
arch/powerpc/kernel/asm-offsets.c
130
OFFSET(DAR, thread_struct, dar);
arch/powerpc/kernel/asm-offsets.c
131
OFFSET(DSISR, thread_struct, dsisr);
arch/powerpc/kernel/asm-offsets.c
133
OFFSET(THR0, thread_struct, r0);
arch/powerpc/kernel/asm-offsets.c
134
OFFSET(THR3, thread_struct, r3);
arch/powerpc/kernel/asm-offsets.c
135
OFFSET(THR4, thread_struct, r4);
arch/powerpc/kernel/asm-offsets.c
136
OFFSET(THR5, thread_struct, r5);
arch/powerpc/kernel/asm-offsets.c
137
OFFSET(THR6, thread_struct, r6);
arch/powerpc/kernel/asm-offsets.c
138
OFFSET(THR8, thread_struct, r8);
arch/powerpc/kernel/asm-offsets.c
139
OFFSET(THR9, thread_struct, r9);
arch/powerpc/kernel/asm-offsets.c
140
OFFSET(THR11, thread_struct, r11);
arch/powerpc/kernel/asm-offsets.c
141
OFFSET(THLR, thread_struct, lr);
arch/powerpc/kernel/asm-offsets.c
142
OFFSET(THCTR, thread_struct, ctr);
arch/powerpc/kernel/asm-offsets.c
143
OFFSET(THSR0, thread_struct, sr0);
arch/powerpc/kernel/asm-offsets.c
146
OFFSET(THREAD_EVR0, thread_struct, evr[0]);
arch/powerpc/kernel/asm-offsets.c
147
OFFSET(THREAD_ACC, thread_struct, acc);
arch/powerpc/kernel/asm-offsets.c
148
OFFSET(THREAD_USED_SPE, thread_struct, used_spe);
arch/powerpc/kernel/asm-offsets.c
152
OFFSET(THREAD_KVM_SVCPU, thread_struct, kvm_shadow_vcpu);
arch/powerpc/kernel/asm-offsets.c
155
OFFSET(THREAD_KVM_VCPU, thread_struct, kvm_vcpu);
arch/powerpc/kernel/asm-offsets.c
160
OFFSET(THREAD_TM_TFHAR, thread_struct, tm_tfhar);
arch/powerpc/kernel/asm-offsets.c
161
OFFSET(THREAD_TM_TEXASR, thread_struct, tm_texasr);
arch/powerpc/kernel/asm-offsets.c
162
OFFSET(THREAD_TM_TFIAR, thread_struct, tm_tfiar);
arch/powerpc/kernel/asm-offsets.c
163
OFFSET(THREAD_TM_TAR, thread_struct, tm_tar);
arch/powerpc/kernel/asm-offsets.c
164
OFFSET(THREAD_TM_PPR, thread_struct, tm_ppr);
arch/powerpc/kernel/asm-offsets.c
165
OFFSET(THREAD_TM_DSCR, thread_struct, tm_dscr);
arch/powerpc/kernel/asm-offsets.c
166
OFFSET(THREAD_TM_AMR, thread_struct, tm_amr);
arch/powerpc/kernel/asm-offsets.c
167
OFFSET(PT_CKPT_REGS, thread_struct, ckpt_regs);
arch/powerpc/kernel/asm-offsets.c
168
OFFSET(THREAD_CKVRSTATE, thread_struct, ckvr_state.vr);
arch/powerpc/kernel/asm-offsets.c
169
OFFSET(THREAD_CKVRSAVE, thread_struct, ckvrsave);
arch/powerpc/kernel/asm-offsets.c
170
OFFSET(THREAD_CKFPSTATE, thread_struct, ckfp_state.fpr);
arch/powerpc/kernel/asm-offsets.c
90
OFFSET(RTAS_SP, thread_struct, rtas_sp);
arch/powerpc/kernel/hw_breakpoint.c
583
struct thread_struct *t = &tsk->thread;
arch/powerpc/kernel/process.c
1023
extern void __tm_recheckpoint(struct thread_struct *thread);
arch/powerpc/kernel/process.c
1025
void tm_recheckpoint(struct thread_struct *thread)
arch/powerpc/kernel/process.c
1154
static inline void save_sprs(struct thread_struct *t)
arch/powerpc/kernel/process.c
1226
static inline void restore_sprs(struct thread_struct *old_thread,
arch/powerpc/kernel/process.c
1227
struct thread_struct *new_thread)
arch/powerpc/kernel/process.c
1282
struct thread_struct *new_thread, *old_thread;
arch/powerpc/kernel/process.c
690
static void set_debug_reg_defaults(struct thread_struct *thread)
arch/powerpc/kernel/process.c
765
static void set_debug_reg_defaults(struct thread_struct *thread)
arch/powerpc/kernel/process.c
931
static void tm_reclaim_thread(struct thread_struct *thr, uint8_t cause)
arch/powerpc/kernel/process.c
993
struct thread_struct *thr = &tsk->thread;
arch/powerpc/kernel/ptrace/ptrace-adv.c
88
struct thread_struct *thread = &task->thread;
arch/powerpc/kernel/ptrace/ptrace-decl.h
25
#define TSO(f) (offsetof(struct thread_struct, f))
arch/powerpc/kernel/ptrace/ptrace-noadv.c
170
static int find_empty_ptrace_bp(struct thread_struct *thread)
arch/powerpc/kernel/ptrace/ptrace-noadv.c
182
static int find_empty_hw_brk(struct thread_struct *thread)
arch/powerpc/kernel/ptrace/ptrace-noadv.c
198
struct thread_struct *thread = &child->thread;
arch/powerpc/kernel/ptrace/ptrace-noadv.c
272
struct thread_struct *thread = &child->thread;
arch/powerpc/kernel/ptrace/ptrace-noadv.c
82
struct thread_struct *thread = &task->thread;
arch/powerpc/kernel/ptrace/ptrace-spe.c
32
BUILD_BUG_ON(offsetof(struct thread_struct, acc) + sizeof(u64) !=
arch/powerpc/kernel/ptrace/ptrace-spe.c
33
offsetof(struct thread_struct, spefscr));
arch/powerpc/kernel/ptrace/ptrace-spe.c
51
BUILD_BUG_ON(offsetof(struct thread_struct, acc) + sizeof(u64) !=
arch/powerpc/kernel/ptrace/ptrace-spe.c
52
offsetof(struct thread_struct, spefscr));
arch/powerpc/kernel/stacktrace.c
89
if (sp < stack_page + sizeof(struct thread_struct) ||
arch/powerpc/kvm/book3s_pr.c
799
struct thread_struct *t = &current->thread;
arch/powerpc/kvm/book3s_pr.c
862
struct thread_struct *t = &current->thread;
arch/riscv/include/asm/processor.h
132
*offset = offsetof(struct thread_struct, fstate);
arch/riscv/include/asm/processor.h
133
*size = sizeof_field(struct thread_struct, fstate);
arch/s390/include/asm/fpu.h
160
struct thread_struct *thread = &current->thread;
arch/s390/include/asm/fpu.h
168
static __always_inline void __save_user_fpu_regs(struct thread_struct *thread, int flags)
arch/s390/include/asm/fpu.h
176
struct thread_struct *thread = &current->thread;
arch/s390/include/asm/fpu.h
189
struct thread_struct *thread = &current->thread;
arch/s390/include/asm/fpu.h
247
static inline void save_kernel_fpu_regs(struct thread_struct *thread)
arch/s390/include/asm/fpu.h
254
static inline void restore_kernel_fpu_regs(struct thread_struct *thread)
arch/s390/include/asm/processor.h
212
typedef struct thread_struct thread_struct;
arch/s390/kernel/asm-offsets.c
29
OFFSET(__THREAD_ksp, thread_struct, ksp);
arch/s390/kernel/ptrace.c
43
struct thread_struct *thread = &task->thread;
arch/s390/mm/pfault.c
212
struct thread_struct *thread, *next;
arch/sh/kernel/hw_breakpoint.c
265
struct thread_struct *t = &tsk->thread;
arch/sh/kernel/process_32.c
147
struct thread_struct *next_t = &next->thread;
arch/sh/kernel/ptrace_32.c
77
struct thread_struct *thread = &tsk->thread;
arch/sparc/kernel/asm-offsets.c
26
offsetof(struct thread_struct, fork_kpsr));
arch/um/kernel/process.c
154
p->thread = (struct thread_struct) INIT_THREAD;
arch/x86/coco/sev/vc-handle.c
79
struct thread_struct *t = &current->thread;
arch/x86/entry/vsyscall/vsyscall_64.c
101
struct thread_struct *thread = &current->thread;
arch/x86/include/asm/desc.h
292
static inline void native_load_tls(struct thread_struct *t, unsigned int cpu)
arch/x86/include/asm/elf.h
153
static inline void elf_common_init(struct thread_struct *t,
arch/x86/include/asm/paravirt.h
243
static inline void load_TLS(struct thread_struct *t, unsigned cpu)
arch/x86/include/asm/paravirt_types.h
15
struct thread_struct;
arch/x86/include/asm/paravirt_types.h
50
void (*load_tls)(struct thread_struct *t, unsigned int cpu);
arch/x86/include/asm/switch_to.h
57
static inline void refresh_sysenter_cs(struct thread_struct *thread)
arch/x86/include/asm/vm86.h
54
struct thread_struct *__t = (t); \
arch/x86/kernel/hw_breakpoint.c
473
struct thread_struct *t = &tsk->thread;
arch/x86/kernel/ioport.c
181
struct thread_struct *t = &current->thread;
arch/x86/kernel/ioport.c
39
struct thread_struct *t = &tsk->thread;
arch/x86/kernel/ioport.c
73
struct thread_struct *t = &current->thread;
arch/x86/kernel/process.c
130
struct thread_struct *t = &tsk->thread;
arch/x86/kernel/process.c
473
struct thread_struct *t = &current->thread;
arch/x86/kernel/process_32.c
157
struct thread_struct *prev = &prev_p->thread,
arch/x86/kernel/process_64.c
374
static __always_inline void x86_pkru_load(struct thread_struct *prev,
arch/x86/kernel/process_64.c
375
struct thread_struct *next)
arch/x86/kernel/process_64.c
391
static __always_inline void x86_fsgsbase_load(struct thread_struct *prev,
arch/x86/kernel/process_64.c
392
struct thread_struct *next)
arch/x86/kernel/process_64.c
612
struct thread_struct *prev = &prev_p->thread;
arch/x86/kernel/process_64.c
613
struct thread_struct *next = &next_p->thread;
arch/x86/kernel/ptrace.c
476
struct thread_struct *thread = &(current->thread);
arch/x86/kernel/ptrace.c
562
struct thread_struct *thread = &tsk->thread;
arch/x86/kernel/ptrace.c
613
struct thread_struct *thread = &tsk->thread;
arch/x86/kernel/ptrace.c
633
struct thread_struct *t = &tsk->thread;
arch/x86/kernel/ptrace.c
672
struct thread_struct *thread = &tsk->thread;
arch/x86/kernel/tls.c
24
struct thread_struct *t = &current->thread;
arch/x86/kernel/tls.c
246
struct thread_struct *t = &target->thread;
arch/x86/kernel/tls.c
88
struct thread_struct *t = &p->thread;
arch/x86/kernel/traps.c
804
struct thread_struct *t = &current->thread;
arch/x86/um/tls_32.c
200
struct thread_struct *t = &task->thread;
arch/x86/um/tls_32.c
234
struct thread_struct *t = &task->thread;
arch/x86/um/tls_32.c
62
struct thread_struct *t = &task->thread;
arch/x86/xen/enlighten_pv.c
616
static void load_TLS_descriptor(struct thread_struct *t,
arch/x86/xen/enlighten_pv.c
636
static void xen_load_tls(struct thread_struct *t, unsigned int cpu)
arch/xtensa/kernel/hw_breakpoint.c
237
struct thread_struct *t = &tsk->thread;
include/linux/sched.h
1640
struct thread_struct thread;