~ubuntu-branches/ubuntu/lucid/rsyslog/lucid

« back to all changes in this revision

Viewing changes to module.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2007-10-19 17:21:49 UTC
  • Revision ID: james.westby@ubuntu.com-20071019172149-ie6ej2xve33mxiu7
Tags: upstream-1.19.10
ImportĀ upstreamĀ versionĀ 1.19.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Module definitions for klogd's module support */
 
2
struct kernel_sym
 
3
{
 
4
                unsigned long value;
 
5
                char name[60];
 
6
};
 
7
 
 
8
struct module_symbol
 
9
{
 
10
        unsigned long value;
 
11
        const char *name;
 
12
};
 
13
 
 
14
struct module_ref
 
15
{
 
16
        struct module *dep;     /* "parent" pointer */
 
17
        struct module *ref;     /* "child" pointer */
 
18
        struct module_ref *next_ref;
 
19
};
 
20
 
 
21
struct module_info
 
22
{
 
23
        unsigned long addr;
 
24
        unsigned long size;
 
25
        unsigned long flags;
 
26
        long usecount;
 
27
};
 
28
 
 
29
 
 
30
typedef struct { volatile int counter; } atomic_t;
 
31
 
 
32
struct module
 
33
{
 
34
        unsigned long size_of_struct;   /* == sizeof(module) */
 
35
        struct module *next;
 
36
        const char *name;
 
37
        unsigned long size;
 
38
        
 
39
        union
 
40
        {
 
41
                atomic_t usecount;
 
42
                long pad;
 
43
        } uc;                           /* Needs to keep its size - so says rth */
 
44
        
 
45
        unsigned long flags;            /* AUTOCLEAN et al */
 
46
        
 
47
        unsigned nsyms;
 
48
        unsigned ndeps;
 
49
        
 
50
        struct module_symbol *syms;
 
51
        struct module_ref *deps;
 
52
        struct module_ref *refs;
 
53
        int (*init)(void);
 
54
        void (*cleanup)(void);
 
55
        const struct exception_table_entry *ex_table_start;
 
56
        const struct exception_table_entry *ex_table_end;
 
57
#ifdef __alpha__
 
58
        unsigned long gp;
 
59
#endif
 
60
};
 
61