lkml.org 
[lkml]   [1996]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Documentation
Date
Alain Knaff wrote:

> We could extend the module utilities to understand the following:
>
> insmod floppy.o -string floppy=0,4,cmos
>
> Or even better:
>
> insmod floppy.o 0,4,cmos
>
> which would place 0,4,cmos into an static variable called argv in the
> module. We could make this a char **, in order to allow for more than
> one argument.

Yes, almost precisely what I'd like. With a little big of reorganisation,
the scanner in main.c could be made available to all modules, we'd
just pass it the argument string.

Then we should teach insmod that the syntax:

insmod floppy=0,4,cmos

means:

insmod floppy.o argv="0,4,cmos"

This breaks none of the current insmod behaviour while providing identical
parameter handling for built-in and loadable modules.

--------------------------------------------------------------------------
Grant R. Guenther grant@torque.net
--------------------------------------------------------------------------


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.025 / U:0.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site