Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751115AbWICWRf (ORCPT ); Sun, 3 Sep 2006 18:17:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750840AbWICWRb (ORCPT ); Sun, 3 Sep 2006 18:17:31 -0400 Received: from py-out-1112.google.com ([64.233.166.183]:60265 "EHLO py-out-1112.google.com") by vger.kernel.org with ESMTP id S1751122AbWICWRR (ORCPT ); Sun, 3 Sep 2006 18:17:17 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=TO7ml0XPn0DMO6PfrHNarROtnZJ/jXV61Pk0lYgrfZasZqZz1XGNU09ryRHmVseOU6zeQ0cZBgYK0bUOSxvDhkJC0N6zP5c1sJNs1d1DiMuEG9/+OovYHYI8BwpmpAWHqchFaOS+fxHRJAFGrqBgNLdnaE9j6cBU5hvGYEZkc50= From: Alon Bar-Lev To: Alon Bar-Lev , Andi Kleen , Matt Domsch , Andrew Morton , linux-kernel@vger.kernel.org, johninsd@san.rr.com, davej@codemonkey.org.uk, Riley@williams.name, trini@kernel.crashing.org, davem@davemloft.net, ecd@brainaid.de, jj@sunsite.ms.mff.cuni.cz, anton@samba.org, wli@holomorphy.com, lethal@linux-sh.org, lethal@linux-sh.org, rc@rc0.org.uk, spyro@f2s.com, spyro@f2s.com, rth@twiddle.net, avr32@atmel.com, hskinnemoen@atmel.com, starvik@axis.com, ralf@linux-mips.org, matthew@wil.cx, grundler@parisc-linux.org, geert@linux-m68k.org, zippel@linux-m68k.org, paulus@samba.org, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, uclinux-v850@lsi.nec.co.jp, chris@zankel.net Subject: [PATCH 00/26] Dynamic kernel command-line - Resend please ignore last Date: Mon, 4 Sep 2006 01:15:21 +0300 User-Agent: KMail/1.9.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609040115.22856.alon.barlev@gmail.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1422 Lines: 41 Current implementation stores a static command-line buffer allocated to COMMAND_LINE_SIZE size. Most architectures stores two copies of this buffer, one for future reference and one for parameter parsing. In order to allow a greater command-line size, these buffers should be dynamically allocated or marked as init disposable buffers, so unused memory can be released. This patch renames the static saved_command_line variable into boot_command_line adding __initdata attribute, so that it can be disposed after initialization. This rename is required so applications that use saved_command_line will not be affected by this change. It reintroduces saved_command_line as dynamically allocated buffer to match the data in boot_command_line. It also mark secondary command-line buffer as __initdata, and copies it to dynamically allocated static_command_line buffer components may hold reference to it after initialization. This patch is for linux-2.6.18-rc5-mm1 and is divided to target each architecture. I could not check this in any architecture so please forgive me if I got it wrong. Signed-off-by: Alon Bar-Lev --- -- VGER BF report: H 0 - 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/