Current
this pointer denotes the current running task on a CPU.
it is accessible only in process context and not interrupts.
it is defined in
<arch/x86/include/asm/current.h>
for x86 processors
returns
task_struct
for the current task running on the CPU
this_cpu_read_const
andthis_cpu_read_stable
are used to obtain per-cpu variables. More information is given at<arch/x86/include/asm/percpu.h>
The source code here is taken from linux-6.8.1
Last updated