--- Greg KH <greg@xxxxxxxxx> ha scritto: > On Sun, May 21, 2006 at 07:20:21PM +0000, Vincenzo > Mallozzi wrote: > > Hi all, > > I've read a reply mail of Jan Hudec about > retrieving pid of a process created > > by means of call_usermodehelper function. In this > mail he suggests to patch > > this function in order to get the pid searched. > There's a way to do it witout > > patching? > > As example, can we search for the keventd child > and then get the pid? > > Why do you want to know that pid from within the > kernel? What will that > allow you to accomplish? > > thanks, I'm developing a LKM to monitor multithreaded processes. I've to create the main process by means of call_usermodehelper() and then I've to get the pid in order to build the tree of the threads created. Tkx Vincenzo ___________________________________ Yahoo! Messenger with Voice: chiama da PC a telefono a tariffe esclusive http://it.messenger.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/