summaryrefslogtreecommitdiff
path: root/ANDROID_3.4.5/include/linux/moduleloader.h
diff options
context:
space:
mode:
authorSrikant Patnaik2015-01-11 12:28:04 +0530
committerSrikant Patnaik2015-01-11 12:28:04 +0530
commit871480933a1c28f8a9fed4c4d34d06c439a7a422 (patch)
tree8718f573808810c2a1e8cb8fb6ac469093ca2784 /ANDROID_3.4.5/include/linux/moduleloader.h
parent9d40ac5867b9aefe0722bc1f110b965ff294d30d (diff)
downloadFOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.gz
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.bz2
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.zip
Moved, renamed, and deleted files
The original directory structure was scattered and unorganized. Changes are basically to make it look like kernel structure.
Diffstat (limited to 'ANDROID_3.4.5/include/linux/moduleloader.h')
-rw-r--r--ANDROID_3.4.5/include/linux/moduleloader.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/ANDROID_3.4.5/include/linux/moduleloader.h b/ANDROID_3.4.5/include/linux/moduleloader.h
deleted file mode 100644
index b2be02eb..00000000
--- a/ANDROID_3.4.5/include/linux/moduleloader.h
+++ /dev/null
@@ -1,55 +0,0 @@
-#ifndef _LINUX_MODULELOADER_H
-#define _LINUX_MODULELOADER_H
-/* The stuff needed for archs to support modules. */
-
-#include <linux/module.h>
-#include <linux/elf.h>
-
-/* These may be implemented by architectures that need to hook into the
- * module loader code. Architectures that don't need to do anything special
- * can just rely on the 'weak' default hooks defined in kernel/module.c.
- * Note, however, that at least one of apply_relocate or apply_relocate_add
- * must be implemented by each architecture.
- */
-
-/* Adjust arch-specific sections. Return 0 on success. */
-int module_frob_arch_sections(Elf_Ehdr *hdr,
- Elf_Shdr *sechdrs,
- char *secstrings,
- struct module *mod);
-
-/* Additional bytes needed by arch in front of individual sections */
-unsigned int arch_mod_section_prepend(struct module *mod, unsigned int section);
-
-/* Allocator used for allocating struct module, core sections and init
- sections. Returns NULL on failure. */
-void *module_alloc(unsigned long size);
-
-/* Free memory returned from module_alloc. */
-void module_free(struct module *mod, void *module_region);
-
-/* Apply the given relocation to the (simplified) ELF. Return -error
- or 0. */
-int apply_relocate(Elf_Shdr *sechdrs,
- const char *strtab,
- unsigned int symindex,
- unsigned int relsec,
- struct module *mod);
-
-/* Apply the given add relocation to the (simplified) ELF. Return
- -error or 0 */
-int apply_relocate_add(Elf_Shdr *sechdrs,
- const char *strtab,
- unsigned int symindex,
- unsigned int relsec,
- struct module *mod);
-
-/* Any final processing of module before access. Return -error or 0. */
-int module_finalize(const Elf_Ehdr *hdr,
- const Elf_Shdr *sechdrs,
- struct module *mod);
-
-/* Any cleanup needed when module leaves. */
-void module_arch_cleanup(struct module *mod);
-
-#endif