Re: Calling module symbols from inside the kernel !

2000-11-08 Thread Ingo Oeser
On Tue, Nov 07, 2000 at 02:41:42PM +, David Woodhouse wrote: > get_module_symbol() does this for you without having to use such a hook > > /me runs So I guess you know already, that it died in 2.4.0-test11-pre1 and you are suggesting dead code? ;-) Regards Ingo Oeser -- To the systems

Re: Calling module symbols from inside the kernel !

2000-11-08 Thread Ingo Oeser
On Tue, Nov 07, 2000 at 02:41:42PM +, David Woodhouse wrote: get_module_symbol() does this for you without having to use such a hook /me runs So I guess you know already, that it died in 2.4.0-test11-pre1 and you are suggesting dead code? ;-) Regards Ingo Oeser -- To the systems

Re: Calling module symbols from inside the kernel !

2000-11-07 Thread David Woodhouse
[EMAIL PROTECTED] said: > You will need to use a function pointer hook that the module fills in > when it is loaded. For an example look at devpts_upcall_new and > devpts_upcall_kill in fs/devpts/inode.c. The hooks are resident in > the kernel and are exported so the module can see them. The

Re: Calling module symbols from inside the kernel !

2000-11-07 Thread richardj_moore
We have a generic way of doing this which we are about to release - called GKHI (Generalised Kernel Hooks Interface) would you like a copy to test? Richard Moore - RAS Project Lead - Linux Technology Centre (PISC). http://oss.software.ibm.com/developerworks/opensource/linux Office: (+44)

Re: Calling module symbols from inside the kernel !

2000-11-07 Thread richardj_moore
We have a generic way of doing this which we are about to release - called GKHI (Generalised Kernel Hooks Interface) would you like a copy to test? Richard Moore - RAS Project Lead - Linux Technology Centre (PISC). http://oss.software.ibm.com/developerworks/opensource/linux Office: (+44)

Re: Calling module symbols from inside the kernel !

2000-11-07 Thread David Woodhouse
[EMAIL PROTECTED] said: You will need to use a function pointer hook that the module fills in when it is loaded. For an example look at devpts_upcall_new and devpts_upcall_kill in fs/devpts/inode.c. The hooks are resident in the kernel and are exported so the module can see them. The

Re: Calling module symbols from inside the kernel !

2000-11-06 Thread Keith Owens
On Mon, 6 Nov 2000 16:24:13 -0300, [EMAIL PROTECTED] wrote: >Is it possible to access symbols exported by modules from inside the kernel ? Not via symbol name, the linkage goes module => kernel, not the other way round. Your module needs to register its data when it loads, then any code can

Re: Calling module symbols from inside the kernel !

2000-11-06 Thread Brian Gerst
[EMAIL PROTECTED] wrote: > > Is it possible to access symbols exported by modules from inside the kernel ? > > I put a funtion call inside the kernel code but this funtion must be implemented in >a module. I tried export as a module symbol but when i tried to recompile the >kernel.. :-( > >

Calling module symbols from inside the kernel !

2000-11-06 Thread forop066
Is it possible to access symbols exported by modules from inside the kernel ? I put a funtion call inside the kernel code but this funtion must be implemented in a module. I tried export as a module symbol but when i tried to recompile the kernel.. :-( Warning: implicit declaration of

Re: Calling module symbols from inside the kernel !

2000-11-06 Thread Brian Gerst
[EMAIL PROTECTED] wrote: Is it possible to access symbols exported by modules from inside the kernel ? I put a funtion call inside the kernel code but this funtion must be implemented in a module. I tried export as a module symbol but when i tried to recompile the kernel.. :-( Warning:

Re: Calling module symbols from inside the kernel !

2000-11-06 Thread Keith Owens
On Mon, 6 Nov 2000 16:24:13 -0300, [EMAIL PROTECTED] wrote: Is it possible to access symbols exported by modules from inside the kernel ? Not via symbol name, the linkage goes module = kernel, not the other way round. Your module needs to register its data when it loads, then any code can use