Re: Modular IDE. How to pass options to the modules?

Keith Owens (kaos@ocs.com.au)
Tue, 14 Dec 1999 11:32:27 +1100


On Mon, 13 Dec 1999 17:06:50 +0200 (EET),
Sergey Kubushin <ksi@ksi-linux.com> wrote:
>Can someone enlighten me how can I do the same when using the a.m. IDE
>modules zoo? The "option=hda=17662,16,63" (btw, which module have I to pass
>it to?) when used with ide-mod gives the following:
>
>=== Cut ===
>[root@nomad block]# insmod ide-mod options="hda=17662,16,63"
>./ide-mod.o: too many values for options (max 1)
>=== Cut ===

ide-mod is the correct module. The full syntax is

insmod ide-mod options=\"hda=17662,16,63\"

or

insmod ide-mod 'options="hda=17662,16,63"'

Without the back slash or single quotes, the shell strips out the
string quotes. When the string quotes are stripped out, insmod treats
the embedded commas as multiple parameters instead of a single string.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/