Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
init.h File Reference
#include <linux/compiler.h>
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  obs_kernel_param
 

Macros

#define __init   __section(.init.text) __cold notrace
 
#define __initdata   __section(.init.data)
 
#define __initconst   __constsection(.init.rodata)
 
#define __exitdata   __section(.exit.data)
 
#define __exit_call   __used __section(.exitcall.exit)
 
#define __constsection(x)   __section(x)
 
#define __ref   __section(.ref.text) noinline
 
#define __refdata   __section(.ref.data)
 
#define __refconst   __constsection(.ref.rodata)
 
#define __init_refok   __ref
 
#define __initdata_refok   __refdata
 
#define __exit_refok   __ref
 
#define __exitused   __used
 
#define __exit   __section(.exit.text) __exitused __cold notrace
 
#define __devinit   __section(.devinit.text) __cold notrace
 
#define __devinitdata   __section(.devinit.data)
 
#define __devinitconst   __constsection(.devinit.rodata)
 
#define __devexit   __section(.devexit.text) __exitused __cold notrace
 
#define __devexitdata   __section(.devexit.data)
 
#define __devexitconst   __constsection(.devexit.rodata)
 
#define __cpuinit   __section(.cpuinit.text) __cold notrace
 
#define __cpuinitdata   __section(.cpuinit.data)
 
#define __cpuinitconst   __constsection(.cpuinit.rodata)
 
#define __cpuexit   __section(.cpuexit.text) __exitused __cold notrace
 
#define __cpuexitdata   __section(.cpuexit.data)
 
#define __cpuexitconst   __constsection(.cpuexit.rodata)
 
#define __meminit   __section(.meminit.text) __cold notrace
 
#define __meminitdata   __section(.meminit.data)
 
#define __meminitconst   __constsection(.meminit.rodata)
 
#define __memexit   __section(.memexit.text) __exitused __cold notrace
 
#define __memexitdata   __section(.memexit.data)
 
#define __memexitconst   __constsection(.memexit.rodata)
 
#define __HEAD   .section ".head.text","ax"
 
#define __INIT   .section ".init.text","ax"
 
#define __FINIT   .previous
 
#define __INITDATA   .section ".init.data","aw",%progbits
 
#define __INITRODATA   .section ".init.rodata","a",%progbits
 
#define __FINITDATA   .previous
 
#define __DEVINIT   .section ".devinit.text", "ax"
 
#define __DEVINITDATA   .section ".devinit.data", "aw"
 
#define __DEVINITRODATA   .section ".devinit.rodata", "a"
 
#define __CPUINIT   .section ".cpuinit.text", "ax"
 
#define __CPUINITDATA   .section ".cpuinit.data", "aw"
 
#define __CPUINITRODATA   .section ".cpuinit.rodata", "a"
 
#define __MEMINIT   .section ".meminit.text", "ax"
 
#define __MEMINITDATA   .section ".meminit.data", "aw"
 
#define __MEMINITRODATA   .section ".meminit.rodata", "a"
 
#define __REF   .section ".ref.text", "ax"
 
#define __REFDATA   .section ".ref.data", "aw"
 
#define __REFCONST   .section ".ref.rodata", "a"
 
#define __define_initcall(level, fn, id)
 
#define early_initcall(fn)   __define_initcall("early",fn,early)
 
#define pure_initcall(fn)   __define_initcall("0",fn,0)
 
#define core_initcall(fn)   __define_initcall("1",fn,1)
 
#define core_initcall_sync(fn)   __define_initcall("1s",fn,1s)
 
#define postcore_initcall(fn)   __define_initcall("2",fn,2)
 
#define postcore_initcall_sync(fn)   __define_initcall("2s",fn,2s)
 
#define arch_initcall(fn)   __define_initcall("3",fn,3)
 
#define arch_initcall_sync(fn)   __define_initcall("3s",fn,3s)
 
#define subsys_initcall(fn)   __define_initcall("4",fn,4)
 
#define subsys_initcall_sync(fn)   __define_initcall("4s",fn,4s)
 
#define fs_initcall(fn)   __define_initcall("5",fn,5)
 
#define fs_initcall_sync(fn)   __define_initcall("5s",fn,5s)
 
#define rootfs_initcall(fn)   __define_initcall("rootfs",fn,rootfs)
 
#define device_initcall(fn)   __define_initcall("6",fn,6)
 
#define device_initcall_sync(fn)   __define_initcall("6s",fn,6s)
 
#define late_initcall(fn)   __define_initcall("7",fn,7)
 
#define late_initcall_sync(fn)   __define_initcall("7s",fn,7s)
 
#define __initcall(fn)   device_initcall(fn)
 
#define __exitcall(fn)   static exitcall_t __exitcall_##fn __exit_call = fn
 
#define console_initcall(fn)
 
#define security_initcall(fn)
 
#define __setup_param(str, unique_id, fn, early)
 
#define __setup(str, fn)   __setup_param(str, fn, fn, 0)
 
#define early_param(str, fn)   __setup_param(str, fn, fn, 1)
 
#define module_init(x)   __initcall(x);
 
#define module_exit(x)   __exitcall(x);
 
#define __nosavedata   __section(.data..nosave)
 
#define __init_or_module   __init
 
#define __initdata_or_module   __initdata
 
#define __initconst_or_module   __initconst
 
#define __INIT_OR_MODULE   __INIT
 
#define __INITDATA_OR_MODULE   __INITDATA
 
#define __INITRODATA_OR_MODULE   __INITRODATA
 
#define __devexit_p(x)   NULL
 
#define __exit_p(x)   NULL
 

Typedefs

typedef int(* initcall_t )(void)
 
typedef void(* exitcall_t )(void)
 
typedef void(* ctor_fn_t )(void)
 

Functions

int do_one_initcall (initcall_t fn)
 
void setup_arch (char **)
 
void prepare_namespace (void)
 
void __init parse_early_param (void)
 
void __init parse_early_options (char *cmdline)
 

Variables

initcall_t __con_initcall_start []
 
initcall_t __con_initcall_end []
 
initcall_t __security_initcall_start []
 
initcall_t __security_initcall_end []
 
char __initdata boot_command_line []
 
charsaved_command_line
 
unsigned int reset_devices
 
void(* late_time_init )(void)
 
bool initcall_debug
 

Macro Definition Documentation

#define __constsection (   x)    __section(x)

Definition at line 58 of file init.h.

#define __cpuexit   __section(.cpuexit.text) __exitused __cold notrace

Definition at line 108 of file init.h.

#define __cpuexitconst   __constsection(.cpuexit.rodata)

Definition at line 110 of file init.h.

#define __cpuexitdata   __section(.cpuexit.data)

Definition at line 109 of file init.h.

#define __cpuinit   __section(.cpuinit.text) __cold notrace

Definition at line 105 of file init.h.

#define __CPUINIT   .section ".cpuinit.text", "ax"

Definition at line 133 of file init.h.

#define __cpuinitconst   __constsection(.cpuinit.rodata)

Definition at line 107 of file init.h.

static int show_msr __cpuinitdata   __section(.cpuinit.data)

Definition at line 106 of file init.h.

#define __CPUINITDATA   .section ".cpuinit.data", "aw"

Definition at line 134 of file init.h.

#define __CPUINITRODATA   .section ".cpuinit.rodata", "a"

Definition at line 135 of file init.h.

#define __define_initcall (   level,
  fn,
  id 
)
Value:
static initcall_t __initcall_##fn##id __used \
__attribute__((__section__(".initcall" level ".init"))) = fn

Definition at line 189 of file init.h.

#define __devexit   __section(.devexit.text) __exitused __cold notrace

Definition at line 100 of file init.h.

#define __devexit_p (   x)    NULL

Definition at line 353 of file init.h.

#define __devexitconst   __constsection(.devexit.rodata)

Definition at line 102 of file init.h.

#define __devexitdata   __section(.devexit.data)

Definition at line 101 of file init.h.

#define __devinit   __section(.devinit.text) __cold notrace

Definition at line 97 of file init.h.

#define __DEVINIT   .section ".devinit.text", "ax"

Definition at line 129 of file init.h.

static struct dev_pm_ops tegra30_i2s_pm_ops __devinitconst   __constsection(.devinit.rodata)

Definition at line 99 of file init.h.

static struct snd_kcontrol_new snd_aica_pcmvolume_control __devinitdata   __section(.devinit.data)

Definition at line 98 of file init.h.

#define __DEVINITDATA   .section ".devinit.data", "aw"

Definition at line 130 of file init.h.

#define __DEVINITRODATA   .section ".devinit.rodata", "a"

Definition at line 131 of file init.h.

#define __exit   __section(.exit.text) __exitused __cold notrace

Definition at line 94 of file init.h.

#define __exit_call   __used __section(.exitcall.exit)

Definition at line 48 of file init.h.

#define __exit_p (   x)    NULL

Definition at line 359 of file init.h.

#define __exit_refok   __ref

Definition at line 85 of file init.h.

#define __exitcall (   fn)    static exitcall_t __exitcall_##fn __exit_call = fn

Definition at line 227 of file init.h.

#define __exitdata   __section(.exit.data)

Definition at line 47 of file init.h.

#define __exitused   __used

Definition at line 91 of file init.h.

#define __FINIT   .previous

Definition at line 123 of file init.h.

#define __FINITDATA   .previous

Definition at line 127 of file init.h.

#define __HEAD   .section ".head.text","ax"

Definition at line 121 of file init.h.

#define __init   __section(.init.text) __cold notrace

Definition at line 44 of file init.h.

#define __INIT   .section ".init.text","ax"

Definition at line 122 of file init.h.

#define __init_or_module   __init

Definition at line 336 of file init.h.

#define __INIT_OR_MODULE   __INIT

Definition at line 339 of file init.h.

#define __init_refok   __ref

Definition at line 83 of file init.h.

#define __initcall (   fn)    device_initcall(fn)

Definition at line 225 of file init.h.

static struct dss_features omap54xx_dss_feats __initconst   __constsection(.init.rodata)

Definition at line 46 of file init.h.

#define __initconst_or_module   __initconst

Definition at line 338 of file init.h.

#define __initdata   __section(.init.data)

Definition at line 45 of file init.h.

#define __INITDATA   .section ".init.data","aw",%progbits

Definition at line 125 of file init.h.

static struct tpa6130a2_platform_data rx51_tpa6130a2_data __initdata_or_module   __initdata

Definition at line 337 of file init.h.

#define __INITDATA_OR_MODULE   __INITDATA

Definition at line 340 of file init.h.

#define __initdata_refok   __refdata

Definition at line 84 of file init.h.

#define __INITRODATA   .section ".init.rodata","a",%progbits

Definition at line 126 of file init.h.

#define __INITRODATA_OR_MODULE   __INITRODATA

Definition at line 341 of file init.h.

#define __memexit   __section(.memexit.text) __exitused __cold notrace

Definition at line 116 of file init.h.

#define __memexitconst   __constsection(.memexit.rodata)

Definition at line 118 of file init.h.

#define __memexitdata   __section(.memexit.data)

Definition at line 117 of file init.h.

#define __meminit   __section(.meminit.text) __cold notrace

Definition at line 113 of file init.h.

#define __MEMINIT   .section ".meminit.text", "ax"

Definition at line 137 of file init.h.

#define __meminitconst   __constsection(.meminit.rodata)

Definition at line 115 of file init.h.

#define __meminitdata   __section(.meminit.data)

Definition at line 114 of file init.h.

#define __MEMINITDATA   .section ".meminit.data", "aw"

Definition at line 138 of file init.h.

#define __MEMINITRODATA   .section ".meminit.rodata", "a"

Definition at line 139 of file init.h.

#define __nosavedata   __section(.data..nosave)

Definition at line 324 of file init.h.

#define __ref   __section(.ref.text) noinline

Definition at line 78 of file init.h.

#define __REF   .section ".ref.text", "ax"

Definition at line 142 of file init.h.

#define __refconst   __constsection(.ref.rodata)

Definition at line 80 of file init.h.

#define __REFCONST   .section ".ref.rodata", "a"

Definition at line 144 of file init.h.

#define __refdata   __section(.ref.data)

Definition at line 79 of file init.h.

#define __REFDATA   .section ".ref.data", "aw"

Definition at line 143 of file init.h.

#define __setup (   str,
  fn 
)    __setup_param(str, fn, fn, 0)

Definition at line 258 of file init.h.

#define __setup_param (   str,
  unique_id,
  fn,
  early 
)
Value:
static const char __setup_str_##unique_id[] __initconst \
__aligned(1) = str; \
static struct obs_kernel_param __setup_##unique_id \
= { __setup_str_##unique_id, fn, early }

Definition at line 250 of file init.h.

#define arch_initcall (   fn)    __define_initcall("3",fn,3)

Definition at line 213 of file init.h.

#define arch_initcall_sync (   fn)    __define_initcall("3s",fn,3s)

Definition at line 214 of file init.h.

#define console_initcall (   fn)
Value:
static initcall_t __initcall_##fn \
__used __section(.con_initcall.init) = fn

Definition at line 230 of file init.h.

#define core_initcall (   fn)    __define_initcall("1",fn,1)

Definition at line 209 of file init.h.

#define core_initcall_sync (   fn)    __define_initcall("1s",fn,1s)

Definition at line 210 of file init.h.

#define device_initcall (   fn)    __define_initcall("6",fn,6)

Definition at line 220 of file init.h.

#define device_initcall_sync (   fn)    __define_initcall("6s",fn,6s)

Definition at line 221 of file init.h.

#define early_initcall (   fn)    __define_initcall("early",fn,early)

Definition at line 198 of file init.h.

#define early_param (   str,
  fn 
)    __setup_param(str, fn, fn, 1)

Definition at line 263 of file init.h.

#define fs_initcall (   fn)    __define_initcall("5",fn,5)

Definition at line 217 of file init.h.

#define fs_initcall_sync (   fn)    __define_initcall("5s",fn,5s)

Definition at line 218 of file init.h.

#define late_initcall (   fn)    __define_initcall("7",fn,7)

Definition at line 222 of file init.h.

#define late_initcall_sync (   fn)    __define_initcall("7s",fn,7s)

Definition at line 223 of file init.h.

#define module_exit (   x)    __exitcall(x);

module_exit() - driver exit entry point : function to be run when driver is removed

module_exit() will wrap the driver clean-up code with cleanup_module() when used with rmmod when the driver is a module. If the driver is statically compiled into the kernel, module_exit() has no effect. There can only be one per module.

Definition at line 291 of file init.h.

#define module_init (   x)    __initcall(x);

module_init() - driver initialization entry point : function to be run at kernel boot time or module insertion

module_init() will either be called during do_initcalls() (if builtin) or at module insertion time (if a module). There can only be one per module.

Definition at line 279 of file init.h.

#define postcore_initcall (   fn)    __define_initcall("2",fn,2)

Definition at line 211 of file init.h.

#define postcore_initcall_sync (   fn)    __define_initcall("2s",fn,2s)

Definition at line 212 of file init.h.

#define pure_initcall (   fn)    __define_initcall("0",fn,0)

Definition at line 207 of file init.h.

#define rootfs_initcall (   fn)    __define_initcall("rootfs",fn,rootfs)

Definition at line 219 of file init.h.

#define security_initcall (   fn)
Value:
static initcall_t __initcall_##fn \
__used __section(.security_initcall.init) = fn

Definition at line 234 of file init.h.

#define subsys_initcall (   fn)    __define_initcall("4",fn,4)

Definition at line 215 of file init.h.

#define subsys_initcall_sync (   fn)    __define_initcall("4s",fn,4s)

Definition at line 216 of file init.h.

Typedef Documentation

typedef void(* ctor_fn_t)(void)

Definition at line 157 of file init.h.

typedef void(* exitcall_t)(void)

Definition at line 151 of file init.h.

typedef int(* initcall_t)(void)

Definition at line 150 of file init.h.

Function Documentation

int do_one_initcall ( initcall_t  fn)

Definition at line 680 of file main.c.

void __init parse_early_options ( char cmdline)

Definition at line 407 of file main.c.

void __init parse_early_param ( void  )

Definition at line 413 of file main.c.

void prepare_namespace ( void  )

Definition at line 515 of file do_mounts.c.

void setup_arch ( char **  )

Definition at line 500 of file setup.c.

Variable Documentation

initcall_t __con_initcall_end[]
initcall_t __con_initcall_start[]
initcall_t __security_initcall_end[]
initcall_t __security_initcall_start[]
char __initdata boot_command_line[]

Definition at line 123 of file main.c.

bool initcall_debug

Definition at line 657 of file main.c.

void(* late_time_init)(void)
unsigned int reset_devices

Definition at line 141 of file main.c.

char* saved_command_line

Definition at line 125 of file main.c.