Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
kernel-offsets.h File Reference
#include <linux/stddef.h>
#include <linux/sched.h>
#include <linux/elf.h>
#include <linux/crypto.h>
#include <asm/mman.h>
#include <common-offsets.h>

Go to the source code of this file.

Macros

#define DEFINE(sym, val)   asm volatile("\n->" #sym " %0 " #val : : "i" (val))
 
#define BLANK()   asm volatile("\n->" : : )
 
#define OFFSET(sym, str, mem)   DEFINE(sym, offsetof(struct str, mem));
 

Functions

void foo (void)
 

Macro Definition Documentation

#define BLANK ( )    asm volatile("\n->" : : )

Definition at line 10 of file kernel-offsets.h.

#define DEFINE (   sym,
  val 
)    asm volatile("\n->" #sym " %0 " #val : : "i" (val))

Definition at line 7 of file kernel-offsets.h.

#define OFFSET (   sym,
  str,
  mem 
)    DEFINE(sym, offsetof(struct str, mem));

Definition at line 12 of file kernel-offsets.h.

Function Documentation

void foo ( void  )

Definition at line 15 of file kernel-offsets.h.