Re: [RFC][PATCH 2.6.11-rc3-mm2] Relay Fork Module

2005-02-14 Thread Greg KH
On Mon, Feb 14, 2005 at 09:26:49AM +0100, Guillaume Thouvenin wrote: > > I'm using kobject because it allows to notify user space application by > sending an event and as I need to send a kernel event (fork event) to a > user space application I thought about kobject. Do you think that it's > not

Re: [RFC][PATCH 2.6.11-rc3-mm2] Relay Fork Module

2005-02-14 Thread Guillaume Thouvenin
On Fri, 2005-02-11 at 11:11 -0800, Greg KH wrote: > > + char *kobj_path = NULL; > > + char *action_string = NULL; > > + char **envp = NULL; > > + char ppid_string[FORK_BUFFER_SIZE]; > > + char cpid_string[FORK_BUFFER_SIZE]; > > + > > + if (!uevent_sock) > > + return; > > +

Re: [RFC][PATCH 2.6.11-rc3-mm2] Relay Fork Module

2005-02-11 Thread Greg KH
On Fri, Feb 11, 2005 at 04:08:40PM +0100, Guillaume Thouvenin wrote: > +void kobject_fork(struct kobject *kobj, pid_t parent, pid_t child) > +{ > +#ifdef CONFIG_KOBJECT_UEVENT No, provide two different functions. In a header file make it a static inline function that does nothing if this option i

Re: [RFC][PATCH 2.6.11-rc3-mm2] Relay Fork Module

2005-02-11 Thread Guillaume Thouvenin
On Fri, 2005-02-11 at 00:54 -0800, Andrew Morton wrote: > > I tested this patch on a 2.6.11-rc3-mm2 kernel and there is a little > > overhead when I compile a Linux kernel: > > > >#time sh -c 'make O=/home/guill/build/k2610 bzImage && > >make O=/home/guill/build/k2610 modules' > > > >

Re: [RFC][PATCH 2.6.11-rc3-mm2] Relay Fork Module

2005-02-11 Thread Guillaume Thouvenin
On Fri, 2005-02-11 at 00:54 -0800, Andrew Morton wrote: > > I tested this patch on a 2.6.11-rc3-mm2 kernel and there is a little > > overhead when I compile a Linux kernel: > > > >#time sh -c 'make O=/home/guill/build/k2610 bzImage && > >make O=/home/guill/build/k2610 modules' > > > >

Re: [RFC][PATCH 2.6.11-rc3-mm2] Relay Fork Module

2005-02-11 Thread Andrew Morton
Guillaume Thouvenin <[EMAIL PROTECTED]> wrote: > > On Mon, 2005-02-07 at 15:46 -0800, Andrew Morton wrote: > > Guillaume Thouvenin <[EMAIL PROTECTED]> wrote: > > > > > > Hello, > > > > > >This module sends a signal to one or several processes (in user > > > space) when a fork occurs in the k

Re: [RFC][PATCH 2.6.11-rc3-mm2] Relay Fork Module

2005-02-11 Thread Guillaume Thouvenin
On Mon, 2005-02-07 at 15:46 -0800, Andrew Morton wrote: > Guillaume Thouvenin <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > >This module sends a signal to one or several processes (in user > > space) when a fork occurs in the kernel. It relays information about > > forks (parent and chil