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_MODULE_H
     20 #define _LINUX_MODULE_H
     21 #include <linux/sched.h>
     22 #include <linux/spinlock.h>
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #include <linux/list.h>
     25 #include <linux/stat.h>
     26 #include <linux/compiler.h>
     27 #include <linux/cache.h>
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #include <linux/kmod.h>
     30 #include <linux/elf.h>
     31 #include <linux/stringify.h>
     32 #include <linux/kobject.h>
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #include <linux/moduleparam.h>
     35 #include <asm/local.h>
     36 #include <asm/module.h>
     37 #define MODULE_SUPPORTED_DEVICE(name)
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #ifndef MODULE_SYMBOL_PREFIX
     40 #define MODULE_SYMBOL_PREFIX ""
     41 #endif
     42 #define MODULE_NAME_LEN (64 - sizeof(unsigned long))
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 struct kernel_symbol
     45 {
     46  unsigned long value;
     47  const char *name;
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 };
     50 struct modversion_info
     51 {
     52  unsigned long crc;
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54  char name[MODULE_NAME_LEN];
     55 };
     56 struct module;
     57 struct module_attribute {
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59  struct attribute attr;
     60  ssize_t (*show)(struct module_attribute *, struct module *, char *);
     61  ssize_t (*store)(struct module_attribute *, struct module *,
     62  const char *, size_t count);
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64  void (*setup)(struct module *, const char *);
     65  int (*test)(struct module *);
     66  void (*free)(struct module *);
     67 };
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69 struct module_kobject
     70 {
     71  struct kobject kobj;
     72  struct module *mod;
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74 };
     75 struct exception_table_entry;
     76 #ifdef MODULE
     77 #define MODULE_GENERIC_TABLE(gtype,name)  extern const struct gtype##_id __mod_##gtype##_table   __attribute__ ((unused, alias(__stringify(name))))
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79 #define THIS_MODULE (&__this_module)
     80 #else
     81 #define MODULE_GENERIC_TABLE(gtype,name)
     82 #define THIS_MODULE ((struct module *)0)
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84 #endif
     85 #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
     86 #define MODULE_ALIAS(_alias) MODULE_INFO(alias, _alias)
     87 #define MODULE_LICENSE(_license) MODULE_INFO(license, _license)
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89 #define MODULE_AUTHOR(_author) MODULE_INFO(author, _author)
     90 #define MODULE_DESCRIPTION(_description) MODULE_INFO(description, _description)
     91 #define MODULE_PARM_DESC(_parm, desc)   __MODULE_INFO(parm, _parm, #_parm ":" desc)
     92 #define MODULE_DEVICE_TABLE(type,name)   MODULE_GENERIC_TABLE(type##_device,name)
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94 #define MODULE_VERSION(_version) MODULE_INFO(version, _version)
     95 struct notifier_block;
     96 #define EXPORT_SYMBOL(sym)
     97 #define EXPORT_SYMBOL_GPL(sym)
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99 #define EXPORT_SYMBOL_GPL_FUTURE(sym)
    100 #define EXPORT_UNUSED_SYMBOL(sym)
    101 #define EXPORT_UNUSED_SYMBOL_GPL(sym)
    102 #define symbol_get(x) ({ extern typeof(x) x __attribute__((weak)); &(x); })
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104 #define symbol_put(x) do { } while(0)
    105 #define symbol_put_addr(x) do { } while(0)
    106 #define module_name(mod) "kernel"
    107 #define __unsafe(mod)
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109 #define module_put_and_exit(code) do_exit(code)
    110 struct device_driver;
    111 struct module;
    112 #define symbol_request(x) try_then_request_module(symbol_get(x), "symbol:" #x)
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114 #define __MODULE_STRING(x) __stringify(x)
    115 #endif
    116