Skip to content

Dynamic kernel command-line

Alon Bar-Lev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest26 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/26Dynamic kernel command-line - common+0 -03 replies
2/26Dynamic kernel command-line - alpha+0 -00 replies
3/26Dynamic kernel command-line - arm+0 -00 replies
4/26Dynamic kernel command-line - arm26+0 -00 replies
5/26Dynamic kernel command-line - avr32+0 -00 replies
6/26Dynamic kernel command-line - cris+0 -00 replies
7/26Dynamic kernel command-line - frv+0 -00 replies
8/26Dynamic kernel command-line - h8300+0 -00 replies
9/26Dynamic kernel command-line - i386+0 -00 replies
10/26Dynamic kernel command-line - ia64+0 -00 replies
11/26Dynamic kernel command-line - m32r+0 -00 replies
12/26Dynamic kernel command-line - m68k+0 -00 replies
13/26Dynamic kernel command-line - m68knommu+0 -00 replies
14/26Dynamic kernel command-line - mips+0 -00 replies
15/26Dynamic kernel command-line - parisc+0 -00 replies
16/26Dynamic kernel command-line - powerpc+0 -00 replies
17/26Dynamic kernel command-line - ppc+0 -00 replies
18/26Dynamic kernel command-line - s390+0 -00 replies
19/26Dynamic kernel command-line - sh+0 -00 replies
20/26Dynamic kernel command-line - sh64+0 -00 replies
21/26Dynamic kernel command-line - sparc+0 -00 replies
22/26Dynamic kernel command-line - sparc64+0 -00 replies
23/26Dynamic kernel command-line - um+0 -00 replies
24/26Dynamic kernel command-line - v850+0 -00 replies
25/26Dynamic kernel command-line - x86_64+0 -00 replies
26/26Dynamic kernel command-line - xtensa+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/26] Dynamic kernel command-line

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.

---

Signature · 1 line
VGER BF report: U 0.5