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