~ubuntu-core-dev/module-init-tools/ubuntu

« back to all changes in this revision

Viewing changes to tests/data/src/module.h

  • Committer: Scott James Remnant
  • Date: 2009-07-16 15:24:17 UTC
  • mfrom: (152.1.38)
  • Revision ID: scott@netsplit.com-20090716152417-7ak1sklxb59cs4fz
MergeĀ 3.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _MODULE_H
 
2
#define _MODULE_H
 
3
 
 
4
struct kernel_symbol
 
5
{
 
6
        unsigned long value;
 
7
        const char *name;
 
8
};
 
9
 
 
10
#define EXPORT_SYMBOL(sym)                                      \
 
11
        const char __ksymtab_string_##sym[]                     \
 
12
        __attribute__((section("__ksymtab_strings"))) = #sym;   \
 
13
        const struct kernel_symbol __ksymtab_##sym              \
 
14
        __attribute__((section("__ksymtab")))                   \
 
15
        = { (unsigned long)&sym, __ksymtab_string_##sym }
 
16
 
 
17
#endif