https://github.com/torvalds/linux
Raw File
Tip revision: 66f41d4c5c8a5deed66fdcc84509376c9a0bf9d8 authored by Linus Torvalds on 30 April 2010, 03:02:05 UTC
Linux 2.6.34-rc6
Tip revision: 66f41d4
vextern.h
#ifndef VEXTERN
#include <asm/vsyscall.h>
#define VEXTERN(x) \
	extern typeof(x) *vdso_ ## x __attribute__((visibility("hidden")));
#endif

#define VMAGIC 0xfeedbabeabcdefabUL

/* Any kernel variables used in the vDSO must be exported in the main
   kernel's vmlinux.lds.S/vsyscall.h/proper __section and
   put into vextern.h and be referenced as a pointer with vdso prefix.
   The main kernel later fills in the values.   */

VEXTERN(jiffies)
VEXTERN(vgetcpu_mode)
VEXTERN(vsyscall_gtod_data)
back to top