[PATCH v2 27/31] arm64: Loadable modules
From: arnd@arndb.de (Arnd Bergmann)
Date: 2012-08-15 15:23:28
Also in:
linux-arch, lkml
From: arnd@arndb.de (Arnd Bergmann)
Date: 2012-08-15 15:23:28
Also in:
linux-arch, lkml
On Tuesday 14 August 2012, Catalin Marinas wrote:
+
+void *module_alloc(unsigned long size)
+{
+ return __vmalloc_node_range(size, 1, MODULES_VADDR, MODULES_END,
+ GFP_KERNEL, PAGE_KERNEL_EXEC, -1,
+ __builtin_return_address(0));
+}
+What is the reason for using a separate virtual address range for the modules instead of falling back to the default module_alloc function that uses vmalloc_exec()? Arnd