kernel thread --> user process

Joel Hollingsworth (jhollingsworth@elon.edu)
02 Mar 2002 15:06:27 -0500


I would like to push a kernel thread into a user-level process through
the use of execve. The kernel thread is started from a loadable
module - so there has been no user-level process dipping into the
kernel that we could just replace.

The process init does something similar. From what I've been reading it
just calls execve() and magically it is a user-level process. Since
my code does not generate a user-level process I assume there is more
to it than that. Can someone point me in the right direction to
accomplishing this? Do I need to generate a user-land stack frame? How?

Please cc jhollingsworth@elon.edu as I'm currently not subscribed.

Thanks for reading.

-joel

-
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/