Re: call_usermodehelper's pid ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 03, 2005 at 22:29:25 +0700, Nhan Thanh Le wrote:
> I actually don't understand your question much :-) , But, if your 
> meaning is communication between Kernel & user space...and you want to 
> know how the kernel know pid of user space process. You should read 
> http://www.linuxjournal.com/article/7356. Hope this help.

... the suggested solution would be: have the user mode helper call back
on any of the abovementioned communication channels and control it
through that.

> Nhanle
> George Zhim wrote:
> 
> >Hi all,
> >
> >Is there a way, from within a kernel module,
> >to know the pid of the process
> >call_usermodehelper is creating ?
> >
> >I want to create a user space process from within
> >a kernel module, and be able to kill it, send signals
> >to it, etc...
> >
> >can I know its pid ?

No, you can't. But since inside the implementation the pid is known,
patch that makes it available would not be too hard (note, that errors
are always negative in kernel and pids are positive, limited to 2**16).
You would have to modify all callers that expect 0 on success though.

--
						 Jan 'Bulb' Hudec <bulb@xxxxxx>

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux