blob: 4235efb1d9a2253e1e8c5d60c83adda310274adf [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
19#ifndef _LINUX_INIT_H
20#define _LINUX_INIT_H
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#include <linux/compiler.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080022#define __init __attribute__ ((__section__ (".init.text")))
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024#define __initdata __attribute__ ((__section__ (".init.data")))
25#define __exitdata __attribute__ ((__section__(".exit.data")))
26#define __exit_call __attribute_used__ __attribute__ ((__section__ (".exitcall.exit")))
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080027#ifdef MODULE
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029#define __exit __attribute__ ((__section__(".exit.text")))
30#else
31#define __exit __attribute_used__ __attribute__ ((__section__(".exit.text")))
32#endif
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034#define __INIT .section ".init.text","ax"
35#define __FINIT .previous
36#define __INITDATA .section ".init.data","aw"
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080037#ifndef __ASSEMBLY__
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039typedef int (*initcall_t)(void);
40typedef void (*exitcall_t)(void);
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080041#endif
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080042#ifndef MODULE
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044#ifndef __ASSEMBLY__
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080045#define __define_initcall(level,fn) static initcall_t __initcall_##fn __attribute_used__ __attribute__((__section__(".initcall" level ".init"))) = fn
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080046#define core_initcall(fn) __define_initcall("1",fn)
47#define postcore_initcall(fn) __define_initcall("2",fn)
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080049#define arch_initcall(fn) __define_initcall("3",fn)
50#define subsys_initcall(fn) __define_initcall("4",fn)
51#define fs_initcall(fn) __define_initcall("5",fn)
52#define device_initcall(fn) __define_initcall("6",fn)
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080054#define late_initcall(fn) __define_initcall("7",fn)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080055#define __initcall(fn) device_initcall(fn)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080056#define __exitcall(fn) static exitcall_t __exitcall_##fn __exit_call = fn
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080057#define console_initcall(fn) static initcall_t __initcall_##fn __attribute_used__ __attribute__((__section__(".con_initcall.init")))=fn
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080059#define security_initcall(fn) static initcall_t __initcall_##fn __attribute_used__ __attribute__((__section__(".security_initcall.init"))) = fn
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080060struct obs_kernel_param {
61 const char *str;
62 int (*setup_func)(char *);
Ben Cheng654325d2012-03-07 21:13:49 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080064 int early;
65};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080066#define __setup_param(str, unique_id, fn, early) static char __setup_str_##unique_id[] __initdata = str; static struct obs_kernel_param __setup_##unique_id __attribute_used__ __attribute__((__section__(".init.setup"))) __attribute__((aligned((sizeof(long))))) = { __setup_str_##unique_id, fn, early }
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080067#define __setup_null_param(str, unique_id) __setup_param(str, unique_id, NULL, 0)
Ben Cheng654325d2012-03-07 21:13:49 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080069#define __setup(str, fn) __setup_param(str, fn, fn, 0)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080070#define __obsolete_setup(str) __setup_null_param(str, __LINE__)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080071#define early_param(str, fn) __setup_param(str, fn, fn, 1)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080072#endif
Ben Cheng654325d2012-03-07 21:13:49 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080074#define module_init(x) __initcall(x);
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080075#define module_exit(x) __exitcall(x);
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080076#else
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080077#define core_initcall(fn) module_init(fn)
Ben Cheng654325d2012-03-07 21:13:49 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080079#define postcore_initcall(fn) module_init(fn)
80#define arch_initcall(fn) module_init(fn)
81#define subsys_initcall(fn) module_init(fn)
82#define fs_initcall(fn) module_init(fn)
Ben Cheng654325d2012-03-07 21:13:49 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080084#define device_initcall(fn) module_init(fn)
85#define late_initcall(fn) module_init(fn)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080086#define security_initcall(fn) module_init(fn)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080087#define module_init(initfn) static inline initcall_t __inittest(void) { return initfn; } int init_module(void) __attribute__((alias(#initfn)));
Ben Cheng654325d2012-03-07 21:13:49 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080089#define module_exit(exitfn) static inline exitcall_t __exittest(void) { return exitfn; } void cleanup_module(void) __attribute__((alias(#exitfn)));
Elliott Hughesc95eb572013-01-29 18:15:55 -080090#define __setup_param(str, unique_id, fn)
91#define __setup_null_param(str, unique_id)
92#define __setup(str, func)
Ben Cheng654325d2012-03-07 21:13:49 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080094#define __obsolete_setup(str)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080095#endif
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080096#define __nosavedata __attribute__ ((__section__ (".data.nosave")))
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080097#define __init_or_module __init
Ben Cheng654325d2012-03-07 21:13:49 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080099#define __initdata_or_module __initdata
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800100#define __devinit __init
101#define __devinitdata __initdata
102#define __devexit __exit
Ben Cheng654325d2012-03-07 21:13:49 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800104#define __devexitdata __exitdata
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800105#define __cpuinit __init
106#define __cpuinitdata __initdata
107#define __cpuexit __exit
Ben Cheng654325d2012-03-07 21:13:49 -0800108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800109#define __cpuexitdata __exitdata
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800110#define __meminit __init
111#define __meminitdata __initdata
112#define __memexit __exit
Ben Cheng654325d2012-03-07 21:13:49 -0800113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800114#define __memexitdata __exitdata
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800115#ifdef MODULE
116#define __devexit_p(x) x
117#else
Ben Cheng654325d2012-03-07 21:13:49 -0800118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800119#define __devexit_p(x) NULL
120#endif
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800121#ifdef MODULE
122#define __exit_p(x) x
Ben Cheng654325d2012-03-07 21:13:49 -0800123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800124#else
125#define __exit_p(x) NULL
126#endif
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800127#endif
Ben Cheng654325d2012-03-07 21:13:49 -0800128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */