[BACK]Return to um_module.c CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs / arch / um / sys-x86_64

File: [Development] / linux-2.6-xfs / arch / um / sys-x86_64 / um_module.c (download)

Revision 1.2, Tue Feb 26 16:44:40 2008 UTC (9 years, 7 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +5 -3 lines

Merge up to 2.6.25-rc3
Merge of 2.6.x-xfs-melb:linux:30555a by kenmcd.

#include <linux/vmalloc.h>
#include <linux/moduleloader.h>

/* Copied from i386 arch/i386/kernel/module.c */
void *module_alloc(unsigned long size)
{
	if (size == 0)
		return NULL;
	return vmalloc_exec(size);
}

/* Free memory returned from module_alloc */
void module_free(struct module *mod, void *module_region)
{
	vfree(module_region);
	/*
	 * FIXME: If module_region == mod->init_region, trim exception
	 * table entries.
	 */
}