Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      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  ***
     10  ***   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  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef _LINUX_INIT_H
     20 #define _LINUX_INIT_H
     21 #include <linux/compiler.h>
     22 #define __init __attribute__ ((__section__ (".init.text")))
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define __initdata __attribute__ ((__section__ (".init.data")))
     25 #define __exitdata __attribute__ ((__section__(".exit.data")))
     26 #define __exit_call __attribute_used__ __attribute__ ((__section__ (".exitcall.exit")))
     27 #ifdef MODULE
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define __exit __attribute__ ((__section__(".exit.text")))
     30 #else
     31 #define __exit __attribute_used__ __attribute__ ((__section__(".exit.text")))
     32 #endif
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define __INIT .section ".init.text","ax"
     35 #define __FINIT .previous
     36 #define __INITDATA .section ".init.data","aw"
     37 #ifndef __ASSEMBLY__
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 typedef int (*initcall_t)(void);
     40 typedef void (*exitcall_t)(void);
     41 #endif
     42 #ifndef MODULE
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #ifndef __ASSEMBLY__
     45 #define __define_initcall(level,fn)   static initcall_t __initcall_##fn __attribute_used__   __attribute__((__section__(".initcall" level ".init"))) = fn
     46 #define core_initcall(fn) __define_initcall("1",fn)
     47 #define postcore_initcall(fn) __define_initcall("2",fn)
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #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)
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 #define late_initcall(fn) __define_initcall("7",fn)
     55 #define __initcall(fn) device_initcall(fn)
     56 #define __exitcall(fn)   static exitcall_t __exitcall_##fn __exit_call = fn
     57 #define console_initcall(fn)   static initcall_t __initcall_##fn   __attribute_used__ __attribute__((__section__(".con_initcall.init")))=fn
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 #define security_initcall(fn)   static initcall_t __initcall_##fn   __attribute_used__ __attribute__((__section__(".security_initcall.init"))) = fn
     60 struct obs_kernel_param {
     61  const char *str;
     62  int (*setup_func)(char *);
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64  int early;
     65 };
     66 #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 }
     67 #define __setup_null_param(str, unique_id)   __setup_param(str, unique_id, NULL, 0)
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69 #define __setup(str, fn)   __setup_param(str, fn, fn, 0)
     70 #define __obsolete_setup(str)   __setup_null_param(str, __LINE__)
     71 #define early_param(str, fn)   __setup_param(str, fn, fn, 1)
     72 #endif
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74 #define module_init(x) __initcall(x);
     75 #define module_exit(x) __exitcall(x);
     76 #else
     77 #define core_initcall(fn) module_init(fn)
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79 #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)
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84 #define device_initcall(fn) module_init(fn)
     85 #define late_initcall(fn) module_init(fn)
     86 #define security_initcall(fn) module_init(fn)
     87 #define module_init(initfn)   static inline initcall_t __inittest(void)   { return initfn; }   int init_module(void) __attribute__((alias(#initfn)));
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89 #define module_exit(exitfn)   static inline exitcall_t __exittest(void)   { return exitfn; }   void cleanup_module(void) __attribute__((alias(#exitfn)));
     90 #define __setup_param(str, unique_id, fn)
     91 #define __setup_null_param(str, unique_id)
     92 #define __setup(str, func)
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94 #define __obsolete_setup(str)
     95 #endif
     96 #define __nosavedata __attribute__ ((__section__ (".data.nosave")))
     97 #define __init_or_module __init
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99 #define __initdata_or_module __initdata
    100 #define __devinit __init
    101 #define __devinitdata __initdata
    102 #define __devexit __exit
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104 #define __devexitdata __exitdata
    105 #define __cpuinit __init
    106 #define __cpuinitdata __initdata
    107 #define __cpuexit __exit
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109 #define __cpuexitdata __exitdata
    110 #define __meminit __init
    111 #define __meminitdata __initdata
    112 #define __memexit __exit
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114 #define __memexitdata __exitdata
    115 #ifdef MODULE
    116 #define __devexit_p(x) x
    117 #else
    118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    119 #define __devexit_p(x) NULL
    120 #endif
    121 #ifdef MODULE
    122 #define __exit_p(x) x
    123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    124 #else
    125 #define __exit_p(x) NULL
    126 #endif
    127 #endif
    128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    129