[PATCH] modprobe and multiple options to modules

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Mon Oct 3 12:50:19 UTC 2005


Hello!

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 pasre 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...



More information about the busybox mailing list