Skip to content

current

Donald Buczek edited this page Jun 13, 2020 · 2 revisions

https://elixir.bootlin.com/linux/v5.7/source/arch/x86/include/asm/current.h#L11

DECLARE_PER_CPU(struct task_struct *, current_task);

static __always_inline struct task_struct *get_current(void)
{
	return this_cpu_read_stable(current_task);
}

#define current get_current()