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

« back to all changes in this revision

Viewing changes to depmod.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
1
#ifndef MODINITTOOLS_DEPMOD_H
2
2
#define MODINITTOOLS_DEPMOD_H
3
3
#include "list.h"
 
4
#include "elfops.h"
4
5
 
5
6
struct module;
6
7
 
7
 
/* Functions provided by depmod.c */
8
 
void add_symbol(const char *name, struct module *owner);
9
 
struct module *find_symbol(const char *name, const char *modname, int weak);
10
 
void add_dep(struct module *mod, struct module *depends_on);
11
 
 
12
8
struct module
13
9
{
14
10
        /* Next module in list of all modules */
15
11
        struct module *next;
16
12
 
17
 
        /* 64 or 32 bit? */
18
 
        struct module_ops *ops;
19
 
 
20
 
        /* Convert endian? */
21
 
        int conv;
22
 
 
23
13
        /* Dependencies: filled in by ops->calculate_deps() */
24
14
        unsigned int num_deps;
25
15
        struct module **deps;
31
21
        unsigned int order;
32
22
 
33
23
        /* Tables extracted from module by ops->fetch_tables(). */
34
 
        unsigned int pci_size;
35
 
        void *pci_table;
36
 
        unsigned int usb_size;
37
 
        void *usb_table;
38
 
        unsigned int ieee1394_size;
39
 
        void *ieee1394_table;
40
 
        unsigned int ccw_size;
41
 
        void *ccw_table;
42
 
        unsigned int pnp_size;
43
 
        void *pnp_table;
44
 
        unsigned int pnp_card_size;
45
 
        unsigned int pnp_card_offset;
46
 
        void *pnp_card_table;
47
 
        unsigned int input_size;
48
 
        void *input_table;
49
 
        unsigned int input_table_size;
50
 
        unsigned int serio_size;
51
 
        void *serio_table;
52
 
        unsigned int of_size;
53
 
        void *of_table;
 
24
        struct module_tables tables;
54
25
 
55
 
        /* File contents and length. */
56
 
        void *data;
57
 
        unsigned long len;
 
26
        struct elf_file *file;
58
27
 
59
28
        char *basename; /* points into pathname */
60
29
        char pathname[0];