Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262594AbVCVJwn (ORCPT ); Tue, 22 Mar 2005 04:52:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262597AbVCVJwn (ORCPT ); Tue, 22 Mar 2005 04:52:43 -0500 Received: from caramon.arm.linux.org.uk ([212.18.232.186]:1037 "EHLO caramon.arm.linux.org.uk") by vger.kernel.org with ESMTP id S262594AbVCVJwm (ORCPT ); Tue, 22 Mar 2005 04:52:42 -0500 Date: Tue, 22 Mar 2005 09:52:32 +0000 From: Russell King To: Oleg Nesterov Cc: linux-kernel@vger.kernel.org, Andi Kleen , "David S. Miller" , Rusty Russell , Andrew Morton Subject: Re: [PATCH 1/5] vmalloc: introduce __vmalloc_area() function Message-ID: <20050322095232.B14577@flint.arm.linux.org.uk> Mail-Followup-To: Oleg Nesterov , linux-kernel@vger.kernel.org, Andi Kleen , "David S. Miller" , Rusty Russell , Andrew Morton References: <422B5263.285A7928@tv-sign.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <422B5263.285A7928@tv-sign.ru>; from oleg@tv-sign.ru on Sun, Mar 06, 2005 at 09:56:35PM +0300 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 951 Lines: 22 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/