Skip to contentSkip to conversation

Calling user-space code from within module?

DISCUSSION Kevin D. Wooten 2 participants 2 messages Sep 4, 2001

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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.