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 <[email protected]> --- -- VGER BF report: H 0 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [PATCH 12/26] Dynamic kernel command-line - m68k
- From: Alon Bar-Lev <[email protected]>
- [PATCH 07/26] Dynamic kernel command-line - frv
- From: Alon Bar-Lev <[email protected]>
- [PATCH 06/26] Dynamic kernel command-line - cris
- From: Alon Bar-Lev <[email protected]>
- [PATCH 17/26] Dynamic kernel command-line - ppc
- From: Alon Bar-Lev <[email protected]>
- [PATCH 22/26] Dynamic kernel command-line - sparc64
- From: Alon Bar-Lev <[email protected]>
- [PATCH 14/26] Dynamic kernel command-line - mips
- From: Alon Bar-Lev <[email protected]>
- [PATCH 21/26] Dynamic kernel command-line - sparc
- From: Alon Bar-Lev <[email protected]>
- [PATCH 08/26] Dynamic kernel command-line - h8300
- From: Alon Bar-Lev <[email protected]>
- [PATCH 13/26] Dynamic kernel command-line - m68knommu
- From: Alon Bar-Lev <[email protected]>
- [PATCH 19/26] Dynamic kernel command-line - sh
- From: Alon Bar-Lev <[email protected]>
- [PATCH 25/26] Dynamic kernel command-line - x86_64
- From: Alon Bar-Lev <[email protected]>
- [PATCH 26/26] Dynamic kernel command-line - xtensa
- From: Alon Bar-Lev <[email protected]>
- [PATCH 24/26] Dynamic kernel command-line - v850
- From: Alon Bar-Lev <[email protected]>
- [PATCH 23/26] Dynamic kernel command-line - um
- From: Alon Bar-Lev <[email protected]>
- [PATCH 18/26] Dynamic kernel command-line - s390
- From: Alon Bar-Lev <[email protected]>
- [PATCH 20/26] Dynamic kernel command-line - sh64
- From: Alon Bar-Lev <[email protected]>
- [PATCH 16/26] Dynamic kernel command-line - powerpc
- From: Alon Bar-Lev <[email protected]>
- [PATCH 11/26] Dynamic kernel command-line - m32r
- From: Alon Bar-Lev <[email protected]>
- [PATCH 09/26] Dynamic kernel command-line - i386
- From: Alon Bar-Lev <[email protected]>
- [PATCH 15/26] Dynamic kernel command-line - parisc
- From: Alon Bar-Lev <[email protected]>
- [PATCH 10/26] Dynamic kernel command-line - ia64
- From: Alon Bar-Lev <[email protected]>
- [PATCH 05/26] Dynamic kernel command-line - avr32
- From: Alon Bar-Lev <[email protected]>
- [PATCH 04/26] Dynamic kernel command-line - arm26
- From: Alon Bar-Lev <[email protected]>
- [PATCH 01/26] Dynamic kernel command-line - common
- From: Alon Bar-Lev <[email protected]>
- [PATCH 02/26] Dynamic kernel command-line - alpha
- From: Alon Bar-Lev <[email protected]>
- [PATCH 03/26] Dynamic kernel command-line - arm
- From: Alon Bar-Lev <[email protected]>
- [PATCH 12/26] Dynamic kernel command-line - m68k
- Prev by Date: 2.6.18-rc5-mm1: MMU=n compile error
- Next by Date: [2.6 patch] arch/h8300/kernel/setup.c should always #include <asm/pgtable.h>
- Previous by thread: frv compile error in set_pte()
- Next by thread: [PATCH 03/26] Dynamic kernel command-line - arm
- Index(es):