This patch has already been posted by Alon Bar-Lev <[email protected]> in 2nd Dec 2006. He didn't get any response. Because I think that this patch would be really useful being able to increase the command line, I post this patch again to get some response. This patches are against 2.6.20-rc4-mm1. 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. Current kernel command-line size for most architecture is much too small for module parameters, video settings, initramfs parameters and much more. The problem is that setting COMMAND_LINE_SIZE to a grater value, allocates static buffers. 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.19 and is divided to target each architecture. I could not check this in any architecture so please forgive me if I got it wrong. The per-architecture modification is very simple, use boot_command_line in place of saved_command_line. The common code is the change into dynamic command-line. Signed-off-by: Alon Bar-Lev <[email protected]> - 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 07/26] Dynamic kernel command-line - frv
- From: Bernhard Walle <[email protected]>
- [patch 09/26] Dynamic kernel command-line - i386
- From: Bernhard Walle <[email protected]>
- [patch 08/26] Dynamic kernel command-line - h8300
- From: Bernhard Walle <[email protected]>
- [patch 11/26] Dynamic kernel command-line - m32r
- From: Bernhard Walle <[email protected]>
- [patch 14/26] Dynamic kernel command-line - mips
- From: Bernhard Walle <[email protected]>
- [patch 15/26] Dynamic kernel command-line - parisc
- From: Bernhard Walle <[email protected]>
- [patch 12/26] Dynamic kernel command-line - m68k
- From: Bernhard Walle <[email protected]>
- [patch 13/26] Dynamic kernel command-line - m68knommu
- From: Bernhard Walle <[email protected]>
- [patch 16/26] Dynamic kernel command-line - powerpc
- From: Bernhard Walle <[email protected]>
- [patch 17/26] Dynamic kernel command-line - ppc
- From: Bernhard Walle <[email protected]>
- [patch 18/26] Dynamic kernel command-line - s390
- From: Bernhard Walle <[email protected]>
- [patch 20/26] Dynamic kernel command-line - sh64
- From: Bernhard Walle <[email protected]>
- [patch 19/26] Dynamic kernel command-line - sh
- From: Bernhard Walle <[email protected]>
- [patch 21/26] Dynamic kernel command-line - sparc
- From: Bernhard Walle <[email protected]>
- [patch 22/26] Dynamic kernel command-line - sparc64
- From: Bernhard Walle <[email protected]>
- [patch 23/26] Dynamic kernel command-line - um
- From: Bernhard Walle <[email protected]>
- [patch 01/26] Dynamic kernel command-line - common
- From: Bernhard Walle <[email protected]>
- [patch 24/26] Dynamic kernel command-line - v850
- From: Bernhard Walle <[email protected]>
- [patch 10/26] Dynamic kernel command-line - ia64
- From: Bernhard Walle <[email protected]>
- [patch 04/26] Dynamic kernel command-line - arm26
- From: Bernhard Walle <[email protected]>
- [patch 06/26] Dynamic kernel command-line - cris
- From: Bernhard Walle <[email protected]>
- [patch 25/26] Dynamic kernel command-line - x86_64
- From: Bernhard Walle <[email protected]>
- [patch 26/26] Dynamic kernel command-line - xtensa
- From: Bernhard Walle <[email protected]>
- [patch 05/26] Dynamic kernel command-line - avr32
- From: Bernhard Walle <[email protected]>
- [patch 03/26] Dynamic kernel command-line - arm
- From: Bernhard Walle <[email protected]>
- [patch 02/26] Dynamic kernel command-line - alpha
- From: Bernhard Walle <[email protected]>
- [patch 07/26] Dynamic kernel command-line - frv
- Prev by Date: [patch 03/26] Dynamic kernel command-line - arm
- Next by Date: [patch 05/26] Dynamic kernel command-line - avr32
- Previous by thread: [PATCH 2.6.20-rc5] SPI: alternative fix for spi_busnum_to_master
- Next by thread: [patch 02/26] Dynamic kernel command-line - alpha
- Index(es):