FILE
syscall.h
File preview with syntax highlighting.
linux-6.19.14/arch/x86/um/asm/syscall.h
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef __UM_ASM_SYSCALL_H 3#define __UM_ASM_SYSCALL_H 4 5#include <asm/syscall-generic.h> 6#include <uapi/linux/audit.h> 7 8typedef asmlinkage long (*sys_call_ptr_t)(unsigned long, unsigned long, 9 unsigned long, unsigned long, 10 unsigned long, unsigned long); 11 12extern const sys_call_ptr_t sys_call_table[]; 13 14static inline int syscall_get_arch(struct task_struct *task) 15{ 16#ifdef CONFIG_X86_32 17 return AUDIT_ARCH_I386; 18#else 19 return AUDIT_ARCH_X86_64; 20#endif 21} 22 23#endif /* __UM_ASM_SYSCALL_H */
~/
Read-only file preview.