cregit-Linux how code gets into the kernel

Release 4.10 arch/x86/include/asm/current.h

#ifndef _ASM_X86_CURRENT_H

#define _ASM_X86_CURRENT_H

#include <linux/compiler.h>
#include <asm/percpu.h>

#ifndef __ASSEMBLY__
struct task_struct;

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()

#endif /* __ASSEMBLY__ */

#endif /* _ASM_X86_CURRENT_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
christoph lameterchristoph lameter4379.63%120.00%
brian gerstbrian gerst59.26%120.00%
h. peter anvinh. peter anvin35.56%120.00%
thomas gleixnerthomas gleixner23.70%120.00%
alex shialex shi11.85%120.00%
Total54100.00%5100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.