cregit-Linux how code gets into the kernel

Release 4.18 arch/x86/entry/syscall_64.c

Directory: arch/x86/entry
// SPDX-License-Identifier: GPL-2.0
/* System call table for x86-64. */

#include <linux/linkage.h>
#include <linux/sys.h>
#include <linux/cache.h>
#include <asm/asm-offsets.h>
#include <asm/syscall.h>

/* this is a lie, but it does not hurt as sys_ni_syscall just returns -EINVAL */
extern asmlinkage long sys_ni_syscall(const struct pt_regs *);

#define __SYSCALL_64(nr, sym, qual) extern asmlinkage long sym(const struct pt_regs *);
#include <asm/syscalls_64.h>
#undef __SYSCALL_64


#define __SYSCALL_64(nr, sym, qual) [nr] = sym,


asmlinkage const sys_call_ptr_t sys_call_table[__NR_syscall_max+1] = {
	/*
         * Smells like a compiler bug -- it doesn't work
         * when the & below is removed.
         */
	[0 ... __NR_syscall_max] = &sys_ni_syscall,
#include <asm/syscalls_64.h>
};

Overall Contributors

PersonTokensPropCommitsCommitProp
Andi Kleen4655.42%440.00%
Dominik Brodowski3036.14%110.00%
H. Peter Anvin33.61%220.00%
Andrew Lutomirski22.41%110.00%
Arjan van de Ven11.20%110.00%
Greg Kroah-Hartman11.20%110.00%
Total83100.00%10100.00%
Directory: arch/x86/entry
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.