vextern.h 495 B

12345678910111213141516
  1. #ifndef VEXTERN
  2. #include <asm/vsyscall.h>
  3. #define VEXTERN(x) \
  4. extern typeof(x) *vdso_ ## x __attribute__((visibility("hidden")));
  5. #endif
  6. #define VMAGIC 0xfeedbabeabcdefabUL
  7. /* Any kernel variables used in the vDSO must be exported in the main
  8. kernel's vmlinux.lds.S/vsyscall.h/proper __section and
  9. put into vextern.h and be referenced as a pointer with vdso prefix.
  10. The main kernel later fills in the values. */
  11. VEXTERN(jiffies)
  12. VEXTERN(vgetcpu_mode)
  13. VEXTERN(vsyscall_gtod_data)