vsyscall.h 539 B

1234567891011121314151617181920212223
  1. #ifndef _ASM_X86_VSYSCALL_H
  2. #define _ASM_X86_VSYSCALL_H
  3. #include <linux/seqlock.h>
  4. #include <uapi/asm/vsyscall.h>
  5. #ifdef CONFIG_X86_VSYSCALL_EMULATION
  6. extern void map_vsyscall(void);
  7. /*
  8. * Called on instruction fetch fault in vsyscall page.
  9. * Returns true if handled.
  10. */
  11. extern bool emulate_vsyscall(struct pt_regs *regs, unsigned long address);
  12. #else
  13. static inline void map_vsyscall(void) {}
  14. static inline bool emulate_vsyscall(struct pt_regs *regs, unsigned long address)
  15. {
  16. return false;
  17. }
  18. #endif
  19. #endif /* _ASM_X86_VSYSCALL_H */