kbuild.h 341 B

123456789101112131415
  1. #ifndef __LINUX_KBUILD_H
  2. #define __LINUX_KBUILD_H
  3. #define DEFINE(sym, val) \
  4. asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
  5. #define BLANK() asm volatile("\n.ascii \"->\"" : : )
  6. #define OFFSET(sym, str, mem) \
  7. DEFINE(sym, offsetof(struct str, mem))
  8. #define COMMENT(x) \
  9. asm volatile("\n.ascii \"->#" x "\"")
  10. #endif