Re: Suggestion for handling of boot-time driver options

Roderich Schupp (
Sun, 14 Dec 1997 17:47:16 +0100 said:
> I'd also like to see a small syntactic enhancement. It should also
> be possible to set parameters with a notation like:
> ez.base0x378

No problem and no ELF magic required here. checksetup in init/main.c
looks up all options "foosome,thing" from the boot command line
and matches them against a table of
{ "foo", foo_setup }
If it finds the "foo" entry, it parses the first up to 10 integer
(decimal, octal, or hex) parameters from "some,thing", then calls
foo_setup with the array of integer params and the unparsed rest of
Of course, it could also adopt the convention that an option of the
form "foo.barsome,thing" matches on "foo", too, and results in
foo_setup passed an empty int array and the string "bar,some,thing".
Cheers, Roderich

  Do not meddle in the affairs of wizards, for they are subtle and quick
  to anger.  Do not meddle in the affairs of dragons for you are crunchy
  and taste good with ketchup.  Do not meddle in the affairs of cats, for
  they are subtle and will piss on your computer.
Roderich Schupp
ExperTeam GmbH 
Munich, Germany               Linux: 2.1.72