Re: Calling user-space code from within module?

From: Hannah Schroeter (hannah@schlund.de)
Date: Tue Sep 04 2001 - 06:54:24 EST


Hello!

In article <AEEEJLJGDLODKEHHFIABMECPCFAA.kwooten@home.com> you write:
>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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Sep 07 2001 - 21:00:24 EST