execute a user process in the kernel
Dag-Erling Smørgrav
des at des.no
Fri Sep 24 12:20:23 PDT 2004
Robert Watson <rwatson at freebsd.org> writes:
> Well, we have kproc/kthread APIs, but none of that is semantically
> compatible with the notion of execve(), which is a very user-centric
> concept ("replace the address space with a mapping of binary <x>"). You
> could fudge together a related notion, though, involving loadable kernel
> modules that have a main() routine run from a thread. That said, the
> notion of simply running user code in kernel (as has been pointed out) is
> fraught with peril, primarily because the kernel is basically one big
> program with many special requirements, and user applications are written
> with the assumption that they are the only program, not running in the
> context of another program.
I believe the OP actually wanted the kernel to spawn a userland
process, but I may have misunderstood.
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-hackers
mailing list