p_module.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  old_kernel_sym
struct  old_module_ref
struct  old_module_symbol
struct  old_symbol_table
struct  old_mod_routines
struct  old_module
struct  module_symbol
struct  module_ref
struct  module
class  module_info

Defines

#define MODUTILS_MODULE_H   1
#define OLD_MOD_AUTOCLEAN   0x40000000
#define tgt_sizeof_char   sizeof(char)
#define tgt_sizeof_short   sizeof(short)
#define tgt_sizeof_int   sizeof(int)
#define tgt_sizeof_long   sizeof(long)
#define tgt_sizeof_char_p   sizeof(char *)
#define tgt_sizeof_void_p   sizeof(void *)
#define tgt_long   long
#define tgt_long_fmt   "l"
#define NEW_MOD_RUNNING   1
#define NEW_MOD_DELETED   2
#define NEW_MOD_AUTOCLEAN   4
#define NEW_MOD_VISITED   8
#define NEW_MOD_USED_ONCE   16
#define NEW_MOD_INITIALIZING   64
#define QM_MODULES   1
#define QM_DEPS   2
#define QM_REFS   3
#define QM_SYMBOLS   4
#define QM_INFO   5

Functions

int get_kernel_syms (struct old_kernel_sym *)
int old_sys_init_module (char const *name, char *code, unsigned codesize, struct old_mod_routines *, struct old_symbol_table *)
int sys_init_module (char const *name, const struct module *)
int query_module (char const *name, int which, void *buf, size_t bufsize, size_t *ret)
unsigned long create_module (const char *, size_t)
int delete_module (const char *)

Variables

unsigned int safemode

Define Documentation

#define MODUTILS_MODULE_H   1

Definition at line 23 of file p_module.h.

#define NEW_MOD_AUTOCLEAN   4

Definition at line 179 of file p_module.h.

#define NEW_MOD_DELETED   2

Definition at line 178 of file p_module.h.

#define NEW_MOD_INITIALIZING   64

Definition at line 182 of file p_module.h.

#define NEW_MOD_RUNNING   1

Definition at line 177 of file p_module.h.

#define NEW_MOD_USED_ONCE   16

Definition at line 181 of file p_module.h.

#define NEW_MOD_VISITED   8

Definition at line 180 of file p_module.h.

#define OLD_MOD_AUTOCLEAN   0x40000000

Definition at line 80 of file p_module.h.

#define QM_DEPS   2

Definition at line 191 of file p_module.h.

#define QM_INFO   5

Definition at line 194 of file p_module.h.

Referenced by opd_drop_module_sample().

#define QM_MODULES   1

Definition at line 190 of file p_module.h.

Referenced by opd_drop_module_sample().

#define QM_REFS   3

Definition at line 192 of file p_module.h.

#define QM_SYMBOLS   4

Definition at line 193 of file p_module.h.

#define tgt_long   long

Definition at line 96 of file p_module.h.

#define tgt_long_fmt   "l"

Definition at line 97 of file p_module.h.

#define tgt_sizeof_char   sizeof(char)

Definition at line 90 of file p_module.h.

#define tgt_sizeof_char_p   sizeof(char *)

Definition at line 94 of file p_module.h.

#define tgt_sizeof_int   sizeof(int)

Definition at line 92 of file p_module.h.

#define tgt_sizeof_long   sizeof(long)

Definition at line 93 of file p_module.h.

#define tgt_sizeof_short   sizeof(short)

Definition at line 91 of file p_module.h.

#define tgt_sizeof_void_p   sizeof(void *)

Definition at line 95 of file p_module.h.


Function Documentation

unsigned long create_module ( const char *  ,
size_t   
)
int delete_module ( const char *   ) 
int get_kernel_syms ( struct old_kernel_sym  ) 
int old_sys_init_module ( char const *  name,
char *  code,
unsigned  codesize,
struct old_mod_routines ,
struct old_symbol_table  
)
int query_module ( char const *  name,
int  which,
void *  buf,
size_t  bufsize,
size_t *  ret 
)

Referenced by opd_drop_module_sample().

Here is the caller graph for this function:

int sys_init_module ( char const *  name,
const struct module  
)

Variable Documentation

unsigned int safemode

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1