cregit-Linux how code gets into the kernel

Release 4.11 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 Lameter4379.63%120.00%
Brian Gerst59.26%120.00%
H. Peter Anvin35.56%120.00%
Thomas Gleixner23.70%120.00%
Alex 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.
Created with cregit.