[PATCH] modprobe and multiple options to modules
Yann E. MORIN
yann.morin.1998 at anciens.enib.fr
Mon Oct 3 15:11:43 UTC 2005
Hello!
(Re-post, as my previous message doesn't seem to have made it to the ML).
To Rob's demand, here is the patch I did against 1.01 for modprobe to support
multiple options to modules.
This patch adds a HUGE amount of code, but hopefully should allow to
have a common ground to parse arguments with a single function, whether
it is called from a shell interpreter, or from any other application needing
argument parsing. Rob, was it what you wanted?
Silly me, in the previous patch (the one that dumped core), I made a error
of one in the size of the array containing argv. Bahh. That was the end of
last week, I guess I was tired...
Anyway, any comments (positive or negative!) are most welcome!
For Intel x86 (P4), it adds 562 bytes:
text data bss dec hex filename
3728 20 28 3776 ec0 modprobe.o-orig
4290 20 28 4338 10f2 modprobe.o
For ARM Xscale (IXP425), it adds 684:
text data bss dec hex filename
4676 20 28 4724 1274 modprobe.o-orig
5360 20 28 5408 1520 modprobe.o
Regards,
Yann E. MORIN.
--
Yann E. MORIN
Roaming in the world...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-1.01-modprobe.patch.bz2
Type: application/x-bzip
Size: 2630 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20051003/a575c4bf/attachment.bin
More information about the busybox
mailing list