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

« back to all changes in this revision

Viewing changes to moduleops.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 MODINITTOOLS_MODULEOPS_H
2
 
#define MODINITTOOLS_MODULEOPS_H
3
 
#include <stdio.h>
4
 
 
5
 
/* All the icky stuff to do with manipulating 64 and 32-bit modules
6
 
   belongs here. */
7
 
struct kernel_symbol32 {
8
 
        char value[4];
9
 
        char name[64 - 4];
10
 
};
11
 
 
12
 
struct kernel_symbol64 {
13
 
        char value[8];
14
 
        char name[64 - 8];
15
 
};
16
 
 
17
 
struct module_ops
18
 
{
19
 
        void (*load_symbols)(struct module *module);
20
 
        void (*calculate_deps)(struct module *module);
21
 
        void (*fetch_tables)(struct module *module);
22
 
        char *(*get_aliases)(struct module *module, unsigned long *size);
23
 
        char *(*get_modinfo)(struct module *module, unsigned long *size);
24
 
};
25
 
 
26
 
extern struct module_ops mod_ops32, mod_ops64;
27
 
 
28
 
#endif /* MODINITTOOLS_MODULEOPS_H */