Lines Matching refs:sym

40 #define __KSYMTAB_ENTRY(sym, sec)					\  argument
41 __ADDRESSABLE(sym) \
42 asm(" .section \"___ksymtab" sec "+" #sym "\", \"a\" \n" \
44 "__ksymtab_" #sym ": \n" \
45 " .long " #sym "- . \n" \
46 " .long __kstrtab_" #sym "- . \n" \
47 " .long __kstrtabns_" #sym "- . \n" \
56 #define __KSYMTAB_ENTRY(sym, sec) \ argument
57 static const struct kernel_symbol __ksymtab_##sym \
58 __attribute__((section("___ksymtab" sec "+" #sym), used)) \
60 = { (unsigned long)&sym, __kstrtab_##sym, __kstrtabns_##sym }
71 #define ___EXPORT_SYMBOL(sym, sec, ns) __GENKSYMS_EXPORT_SYMBOL(sym) argument
86 #define ___EXPORT_SYMBOL(sym, sec, ns) \ argument
87 extern typeof(sym) sym; \
88 extern const char __kstrtab_##sym[]; \
89 extern const char __kstrtabns_##sym[]; \
91 "__kstrtab_" #sym ": \n" \
92 " .asciz \"" #sym "\" \n" \
93 "__kstrtabns_" #sym ": \n" \
96 __KSYMTAB_ENTRY(sym, sec)
107 #define __EXPORT_SYMBOL(sym, sec, ns) argument
120 #define __ksym_marker(sym) \ argument
121 static int __ksym_marker_##sym[0] __section(".discard.ksym") __used
123 #define __EXPORT_SYMBOL(sym, sec, ns) \ argument
124 __ksym_marker(sym); \
125 __cond_export_sym(sym, sec, ns, __is_defined(__KSYM_##sym))
126 #define __cond_export_sym(sym, sec, ns, conf) \ argument
127 ___cond_export_sym(sym, sec, ns, conf)
128 #define ___cond_export_sym(sym, sec, ns, enabled) \ argument
129 __cond_export_sym_##enabled(sym, sec, ns)
130 #define __cond_export_sym_1(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns) argument
133 #define __cond_export_sym_0(sym, sec, ns) __GENKSYMS_EXPORT_SYMBOL(sym) argument
135 #define __cond_export_sym_0(sym, sec, ns) /* nothing */ argument
140 #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns) argument
145 #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, __stringify(DEFAULT_SYMBOL_NAMESPACE)) argument
147 #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "") argument
150 #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "") argument
151 #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl") argument
152 #define EXPORT_SYMBOL_NS(sym, ns) __EXPORT_SYMBOL(sym, "", __stringify(ns)) argument
153 #define EXPORT_SYMBOL_NS_GPL(sym, ns) __EXPORT_SYMBOL(sym, "_gpl", __stringify(ns)) argument