https://github.com/torvalds/linux
Raw File
Tip revision: c65b99f046843d2455aa231747b5a07a999a9f3d authored by Linus Torvalds on 01 June 2015, 02:01:07 UTC
Linux 4.1-rc6
Tip revision: c65b99f
kbuild.h
#ifndef __LINUX_KBUILD_H
#define __LINUX_KBUILD_H

#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))

#define COMMENT(x) \
	asm volatile("\n->#" x)

#endif
back to top