Messages in this thread | | | Date | Tue, 22 Mar 2005 09:52:32 +0000 | From | Russell King <> | Subject | Re: [PATCH 1/5] vmalloc: introduce __vmalloc_area() function |
| |
On Sun, Mar 06, 2005 at 09:56:35PM +0300, Oleg Nesterov wrote: > There are 3 copy-and-paste implementations of __vmalloc() in > arch/{arm,sparc64,x86_64}/kernel/module.c.
There is actually a similar copy in arch/arm/mm/consistent.c, but at the time I cleaned it up to be something saner. With some tweaks (such as adding a struct vm_region_head which contains the spinlock, as well as the start/end and list) we essentially end up with a generic memory region allocator suitable for vmalloc, ioremap, module stuff, and so forth.
If anyone's interested in that, I'll sort out those tweaks.
-- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 Serial core - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |