All ,
Can we enforce no version check for modules when they are inserted ( insmod
) ? If yes , can this be implemented in the module itself ?
Thanks in advance
-tm
On Tue, 9 Apr 2002, Mathew, Tisson K wrote:
> All ,
>
> Can we enforce no version check for modules when they are inserted
> ( insmod
insmod -f module.o
|_______________ force loading
> ) ? If yes , can this be implemented in the module itself ?
>
No. `insmod` wouldn't load it so the module doesn't get a chance to
"check" anything.
> Thanks in advance
Also, note that `struct file_operations` has different member-
locations for different kernel versions. Even if the module
loaded, you might end up with 'read' being 'seek', etc. Bad idea.
Cheers,
Dick Johnson
Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
Windows-2000/Professional isn't.
Thanks Dick
-----Original Message-----
From: Richard B. Johnson [mailto:[email protected]]
Sent: Tuesday, April 09, 2002 9:48 AM
To: Mathew, Tisson K
Cc: [email protected]
Subject: Re: Inserting modules w/o version check
On Tue, 9 Apr 2002, Mathew, Tisson K wrote:
> All ,
>
> Can we enforce no version check for modules when they are inserted (
> insmod
insmod -f module.o
|_______________ force loading
> ) ? If yes , can this be implemented in the module itself ?
>
No. `insmod` wouldn't load it so the module doesn't get a chance to "check"
anything.
> Thanks in advance
Also, note that `struct file_operations` has different member- locations for
different kernel versions. Even if the module loaded, you might end up with
'read' being 'seek', etc. Bad idea.
Cheers,
Dick Johnson
Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
Windows-2000/Professional isn't.
"Mathew, Tisson K" wrote:
>
> All ,
>
> Can we enforce no version check for modules when they are inserted ( insmod
insmod -f
> ) ? If yes , can this be implemented in the module itself ?
no
but it's much nicer to make a "lazy compile" option so that if the
kernel
doesn't match you compile a new module from source on demand....
It's not hard to do...
Greetings,
Arjan van de Ven
On Tue, 9 Apr 2002 09:37:14 -0700 ,
"Mathew, Tisson K" <[email protected]> wrote:
>Can we enforce no version check for modules when they are inserted ( insmod
>) ? If yes , can this be implemented in the module itself ?
insmod -f, but don't bother sending bug reports to l-k after a forced
insert.