summaryrefslogtreecommitdiff
path: root/include/linux/moduleloader.h
blob: c1f40c2f7ffbdffae2ff037d17df5a8a6b857957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#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 must be implemented by the specific 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
.c?id=088df424be7fe5706ea7c385638d23f6a68c6dd1'>mwifiex: get rid of global pointer reset_hostAmitkumar Karwar 2014-06-25mwifiex: use generic 'iface_work' workqueue for SDIO interfaceAmitkumar Karwar 2014-05-16mwifiex: restore current SDIO write port in failure casesAvinash Patil 2014-04-22mwifiex: remove redundant 'fw_load' completion structureAmitkumar Karwar 2014-04-22mwifiex: increase SDIO multiport aggregation buffer sizesAmitkumar Karwar 2014-03-27mwifiex: cancel pending commands during host sleepAmitkumar Karwar 2014-02-28mwifiex: stop AP at shutdown timeAmitkumar Karwar 2014-02-28mwifiex: change transmit buffer size for 8897Amitkumar Karwar 2013-11-15mwifiex: fix memory leak issue for sdio and pcie cardsAmitkumar Karwar 2013-11-11mwifiex: correct packet length for packets from SDIO interfaceAvinash Patil 2013-08-26mwifiex: add missing endian conversionsTobias Waldekranz 2013-08-09Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linvil...John W. Linville 2013-07-26mwifiex: Add missing endian conversion.Tomasz Moń 2013-07-26mwifiex: code rearrangement in sdio.cAmitkumar Karwar 2013-07-25Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linvil...John W. Linville 2013-07-24mwifiex: replace mdelay with msleepAmitkumar Karwar 2013-07-22mwifiex: fix IRQ enable/disableDaniel Drake 2013-05-22mwifiex: add support for Marvell SD8897 chipsetYogesh Ashok Powar 2013-05-22mwifiex: code rearrangement in multiport aggregation pathAmitkumar Karwar 2013-05-22mwifiex: define a macro for MPA base addressAmitkumar Karwar 2013-05-22mwifiex: do port calculations separatelyAmitkumar Karwar 2013-05-22mwifiex: code rearrangement in mwifiex_get_rd_port()Amitkumar Karwar 2013-05-22mwifiex: replace unnecessary u32 variables with u8 in sdio.cAmitkumar Karwar 2013-05-22mwifiex: store SDIO chip specific information in separate structureAmitkumar Karwar 2013-05-22mwifiex: use u32 variables for SDIO read/write port bitmapAmitkumar Karwar 2013-02-25Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linvil...John W. Linville 2013-02-22mwifiex: don't drop carrier flag over suspendDaniel Drake 2013-02-20Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds 2013-02-08Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linvil...John W. Linville 2013-02-04wireless: Remove unnecessary alloc/OOM messages, alloc cleanupsJoe Perches 2013-01-30mwifiex: do not overwrite error code from lower layer driverBing Zhao 2012-12-28mwifiex: don't use [delayed_]work_pending()Tejun Heo 2012-11-21Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linvil...John W. Linville 2012-11-16mwifiex: report error to MMC core if we cannot suspendBing Zhao 2012-11-14mwifiex: process RX packets in SDIO IRQ thread directlyBing Zhao 2012-11-14mwifiex: add support for SDIO card resetAmitkumar Karwar 2012-06-22mwifiex: fix bugs in event handling codeAmitkumar Karwar 2012-05-08mwifiex: add support for SD8786 sdioWarheadsSE 2012-04-12mwifiex: use asynchronous firmware loadingAmitkumar Karwar