cregit-Linux how code gets into the kernel

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

/* SPDX-License-Identifier: GPL-2.0 */
#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 Lameter4378.18%116.67%
Brian Gerst59.09%116.67%
H. Peter Anvin35.45%116.67%
Thomas Gleixner23.64%116.67%
Greg Kroah-Hartman11.82%116.67%
Alex Shi11.82%116.67%
Total55100.00%6100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.