Re: Spawning and managing userprocess from kernel module

2008-09-01 Thread Thomas Petazzoni
Le Mon, 01 Sep 2008 10:40:01 +0200, DEGREMONT Aurelien <[EMAIL PROTECTED]> a écrit : > Yes, yes, I know this will be a lot simpler in user-space, but, if i > trying to do this in kernel space, it is not because I'm masochist, > but because I need it. If this is not possible or, it is really too

Re: Spawning and managing userprocess from kernel module

2008-09-01 Thread DEGREMONT Aurelien
Yes, yes, I know this will be a lot simpler in user-space, but, if i trying to do this in kernel space, it is not because I'm masochist, but because I need it. If this is not possible or, it is really too difficult I will try to do otherwise, but I want to be sure before changing my plans. Sa

Re: Spawning and managing userprocess from kernel module

2008-09-01 Thread Thomas Petazzoni
Hi Aurélien, (Hope your Canada trip after OLS was nice !) Le Fri, 29 Aug 2008 17:54:52 +0200, DEGREMONT Aurelien <[EMAIL PROTECTED]> a écrit : > 3 - Is the only solution to code a userspace daemon for doing that, > and just use a mechanism to communicate between this daemon and the > kernel? T

Re: Spawning and managing userprocess from kernel module

2008-08-31 Thread Peter Teoh
On Mon, Sep 1, 2008 at 9:48 AM, Mulyadi Santosa <[EMAIL PROTECTED]> wrote: > Hi > What you're trying to do is whole lot easier and less complex if you > do it (mostly) in user space.Do fork(), then probably coordinate via > mutex, signal or simply do wait(). > > Please notice that I don't say you'r

Re: Spawning and managing userprocess from kernel module

2008-08-31 Thread Mulyadi Santosa
Hi On Fri, Aug 29, 2008 at 10:54 PM, DEGREMONT Aurelien <[EMAIL PROTECTED]> wrote: > Hello all! > > I need to be able to start and manage several user-processes from a kernel > module. > By managing, i mean, read the process output, wait for its end, kill it > sooner if needed. > It looks like the

Spawning and managing userprocess from kernel module

2008-08-29 Thread DEGREMONT Aurelien
Hello all! I need to be able to start and manage several user-processes from a kernel module. By managing, i mean, read the process output, wait for its end, kill it sooner if needed. It looks like the mecanisms offered by call_usermodehelper() but, more sophisticated. I did some code, looking