Calling user-space code from within module?
Is there any way to call a user-space function from within a kernel module, providing at some point a function pointer was passed in? If so how would you call this function if you were in the context of another process?
-kw
Hello!
In article <[email protected]> you write:
Quoted 3 lines
Is there any way to call a user-space function from within a kernel module, providing at some point a function pointer was passed in? If so how would you call this function if you were in the context of another process?
No precise hints, but you could look at the way how signal handler functions are called.
Another way is to avoid the problem, using instead a userland<->kernel socket (or similar) connection and some "remote procedure call" over that socket.
Hope that helps a bit.
Kind regards,
Hannah.