Dynamic kernel command-line
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest26 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/26 | Dynamic kernel command-line - commoninclude/ init/ | +27 | 0 replies | |
| 2/26 | Dynamic kernel command-line - alphaarch/ | +3 | 0 replies | |
| 3/26 | Dynamic kernel command-line - armarch/ | +3 | 0 replies | |
| 4/26 | Dynamic kernel command-line - arm26arch/ | +3 | 0 replies | |
| 5/26 | Dynamic kernel command-line - avr32arch/ | +3 | 0 replies | |
| 6/26 | Dynamic kernel command-line - crisarch/ | +3 | 0 replies | |
| 7/26 | Dynamic kernel command-line - frvarch/ | +3 | 0 replies | |
| 8/26 | Dynamic kernel command-line - h8300arch/ | +3 | 0 replies | |
| 9/26 | Dynamic kernel command-line - i386arch/ arch/ | +3 | 0 replies | |
| 10/26 | Dynamic kernel command-line - ia64arch/ arch/ arch/ | +5 | 0 replies | |
| 11/26 | Dynamic kernel command-line - m32rarch/ | +3 | 0 replies | |
| 12/26 | Dynamic kernel command-line - m68karch/ | +1 | 0 replies | |
| 13/26 | Dynamic kernel command-line - m68knommuarch/ | +3 | 0 replies | |
| 14/26 | Dynamic kernel command-line - mipsarch/ | +1 | 0 replies | |
| 15/26 | Dynamic kernel command-line - pariscarch/ arch/ | +6 | 0 replies | |
| 16/26 | Dynamic kernel command-line - powerpcarch/ arch/ arch/ +1 more | +5 | 0 replies | |
| 17/26 | Dynamic kernel command-line - ppcarch/ arch/ arch/ +1 more | +5 | 0 replies | |
| 18/26 | Dynamic kernel command-line - s390arch/ | +1 | 0 replies | |
| 19/26 | Dynamic kernel command-line - sharch/ | +3 | 0 replies | |
| 20/26 | Dynamic kernel command-line - sh64arch/ | +3 | 0 replies | |
| 21/26 | Dynamic kernel command-line - sparcarch/ arch/ | +2 | 0 replies | |
| 22/26 | Dynamic kernel command-line - sparc64arch/ arch/ | +2 | 0 replies | |
| 23/26 | Dynamic kernel command-line - umarch/ arch/ | +2 | 0 replies | |
| 24/26 | Dynamic kernel command-line - v850arch/ | +3 | 0 replies | |
| 25/26 | Dynamic kernel command-line - x86_64arch/ arch/ include/ | +6 | 0 replies | |
| 26/26 | Dynamic kernel command-line - xtensaarch/ | +3 | 0 replies |
Reviews trailers per patch
3 of 26 patches have a Reviewed-by or Acked-by.
| Patch | Haavard Skinnemoen | Paul Mundt |
|---|---|---|
| 1/26 | ||
| 2/26 | ||
| 3/26 | ||
| 4/26 | ||
| 5/26 | A-b | |
| 6/26 | ||
| 7/26 | ||
| 8/26 | ||
| 9/26 | ||
| 10/26 | ||
| 11/26 | ||
| 12/26 | ||
| 13/26 | ||
| 14/26 | ||
| 15/26 | ||
| 16/26 | ||
| 17/26 | ||
| 18/26 | ||
| 19/26 | A-b | |
| 20/26 | A-b | |
| 21/26 | ||
| 22/26 | ||
| 23/26 | ||
| 24/26 | ||
| 25/26 | ||
| 26/26 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/26] Dynamic kernel command-line
Hello,
This is take 3 of submission, I submit this patch once in a few monthes to collect some more signatures :) Until now, I got three:
- avr32
- sh
- sh64
I know this is not one of major priorities, but it should be simple enough to be reviewed and included.
I will also be happy to get a REJECT response, so I stop trying to get it included. Any suggestions of how to push this farward will also be appreciated.
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 paramters 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.
---