Re: execute a user process in the kernel
From: Dag-Erling Smørgrav (des_at_des.no)
Date: 09/24/04
- Previous message: Robert Watson: "Re: execute a user process in the kernel"
- In reply to: Robert Watson: "Re: execute a user process in the kernel"
- Next in thread: Bruce M Simpson: "Re: execute a user process in the kernel"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Robert Watson <rwatson@freebsd.org> Date: Fri, 24 Sep 2004 21:20:21 +0200
Robert Watson <rwatson@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@des.no _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
- Previous message: Robert Watson: "Re: execute a user process in the kernel"
- In reply to: Robert Watson: "Re: execute a user process in the kernel"
- Next in thread: Bruce M Simpson: "Re: execute a user process in the kernel"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|