syscall.h 431 B

123456789101112131415161718192021
  1. #ifndef __UM_ASM_SYSCALL_H
  2. #define __UM_ASM_SYSCALL_H
  3. #include <asm/syscall-generic.h>
  4. #include <uapi/linux/audit.h>
  5. typedef asmlinkage long (*sys_call_ptr_t)(unsigned long, unsigned long,
  6. unsigned long, unsigned long,
  7. unsigned long, unsigned long);
  8. static inline int syscall_get_arch(void)
  9. {
  10. #ifdef CONFIG_X86_32
  11. return AUDIT_ARCH_I386;
  12. #else
  13. return AUDIT_ARCH_X86_64;
  14. #endif
  15. }
  16. #endif /* __UM_ASM_SYSCALL_H */