Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
module.h File Reference
#include <linux/list.h>
#include <linux/stat.h>
#include <linux/compiler.h>
#include <linux/cache.h>
#include <linux/kmod.h>
#include <linux/elf.h>
#include <linux/stringify.h>
#include <linux/kobject.h>
#include <linux/moduleparam.h>
#include <linux/tracepoint.h>
#include <linux/export.h>
#include <linux/percpu.h>
#include <asm/module.h>

Go to the source code of this file.

Data Structures

struct  modversion_info
 
struct  module_kobject
 
struct  module_attribute
 
struct  module_version_attribute
 

Macros

#define MODULE_SIG_STRING   "~Module signature appended~\n"
 
#define MODULE_SUPPORTED_DEVICE(name)
 
#define MODULE_NAME_LEN   MAX_PARAM_PREFIX_LEN
 
#define MODULE_GENERIC_TABLE(gtype, name)
 
#define MODULE_INFO(tag, info)   __MODULE_INFO(tag, tag, info)
 
#define MODULE_ALIAS(_alias)   MODULE_INFO(alias, _alias)
 
#define MODULE_LICENSE(_license)   MODULE_INFO(license, _license)
 
#define MODULE_AUTHOR(_author)   MODULE_INFO(author, _author)
 
#define MODULE_DESCRIPTION(_description)   MODULE_INFO(description, _description)
 
#define MODULE_DEVICE_TABLE(type, name)   MODULE_GENERIC_TABLE(type##_device,name)
 
#define MODULE_VERSION(_version)   MODULE_INFO(version, _version)
 
#define MODULE_FIRMWARE(_firmware)   MODULE_INFO(firmware, _firmware)
 
#define symbol_get(x)   ({ extern typeof(x) x __attribute__((weak)); &(x); })
 
#define symbol_put(x)   do { } while(0)
 
#define symbol_put_addr(x)   do { } while(0)
 
#define module_name(mod)   "kernel"
 
#define module_put_and_exit(code)   do_exit(code)
 
#define symbol_request(x)   try_then_request_module(symbol_get(x), "symbol:" #x)
 
#define __MODULE_STRING(x)   __stringify(x)
 

Functions

struct module_version_attribute __attribute__ ((__aligned__(sizeof(void *))))
 
ssize_t __modver_version_show (struct module_attribute *, struct module_kobject *, char *)
 
int init_module (void)
 
void cleanup_module (void)
 
struct exception_table_entrysearch_extable (const struct exception_table_entry *first, const struct exception_table_entry *last, unsigned long value)
 
void sort_extable (struct exception_table_entry *start, struct exception_table_entry *finish)
 
void sort_main_extable (void)
 
void trim_init_extable (struct module *m)
 
struct exception_table_entrysearch_exception_tables (unsigned long add)
 

Variables

struct module_attribute mattr
 
const charmodule_name
 
const charversion
 
struct module_attribute module_uevent
 

Macro Definition Documentation

#define __MODULE_STRING (   x)    __stringify(x)

Definition at line 634 of file module.h.

#define MODULE_ALIAS (   _alias)    MODULE_INFO(alias, _alias)

Definition at line 98 of file module.h.

#define MODULE_AUTHOR (   _author)    MODULE_INFO(author, _author)

Definition at line 134 of file module.h.

#define MODULE_DESCRIPTION (   _description)    MODULE_INFO(description, _description)

Definition at line 137 of file module.h.

#define MODULE_DEVICE_TABLE (   type,
  name 
)    MODULE_GENERIC_TABLE(type##_device,name)

Definition at line 139 of file module.h.

#define MODULE_FIRMWARE (   _firmware)    MODULE_INFO(firmware, _firmware)

Definition at line 180 of file module.h.

#define MODULE_GENERIC_TABLE (   gtype,
  name 
)

Definition at line 91 of file module.h.

#define MODULE_INFO (   tag,
  info 
)    __MODULE_INFO(tag, tag, info)

Definition at line 95 of file module.h.

#define MODULE_LICENSE (   _license)    MODULE_INFO(license, _license)

Definition at line 128 of file module.h.

#define module_name (   mod)    "kernel"

Definition at line 564 of file module.h.

#define MODULE_NAME_LEN   MAX_PARAM_PREFIX_LEN

Definition at line 30 of file module.h.

#define module_put_and_exit (   code)    do_exit(code)

Definition at line 617 of file module.h.

#define MODULE_SIG_STRING   "~Module signature appended~\n"

Definition at line 25 of file module.h.

#define MODULE_SUPPORTED_DEVICE (   name)

Definition at line 28 of file module.h.

#define MODULE_VERSION (   _version)    MODULE_INFO(version, _version)

Definition at line 158 of file module.h.

#define symbol_get (   x)    ({ extern typeof(x) x __attribute__((weak)); &(x); })

Definition at line 547 of file module.h.

#define symbol_put (   x)    do { } while(0)

Definition at line 548 of file module.h.

#define symbol_put_addr (   x)    do { } while(0)

Definition at line 549 of file module.h.

#define symbol_request (   x)    try_then_request_module(symbol_get(x), "symbol:" #x)

Definition at line 630 of file module.h.

Function Documentation

ssize_t __modver_version_show ( struct module_attribute ,
struct module_kobject ,
char  
)
void cleanup_module ( void  )

Definition at line 348 of file hostess_sv11.c.

int init_module ( void  )

Definition at line 341 of file hostess_sv11.c.

struct exception_table_entry* search_exception_tables ( unsigned long  add)
read

Definition at line 51 of file extable.c.

struct exception_table_entry* search_extable ( const struct exception_table_entry first,
const struct exception_table_entry last,
unsigned long  value 
)
read

Definition at line 73 of file extable.c.

void sort_extable ( struct exception_table_entry start,
struct exception_table_entry finish 
)

Definition at line 44 of file extable.c.

void sort_main_extable ( void  )

Definition at line 42 of file extable.c.

void trim_init_extable ( struct module m)

Variable Documentation

Definition at line 63 of file module.h.

const char* module_name

Definition at line 64 of file module.h.

struct module_attribute module_uevent

Definition at line 1069 of file module.c.

const char* version

Definition at line 65 of file module.h.