Re: call_usermodehelper from a timer function ?

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

 



On 11/16/05, Arjan van de Ven <arjan@xxxxxxxxxxxxx> wrote:
> On Wed, 2005-11-16 at 16:34 +0530, Indraneel Mukherjee wrote:
> > Hi All,
> > I've got a doubt regarding the call to call_usermodehelper.
> > Can i invoke it from a timer function? One of the recent thread's on
> > this mailing list suggest that we can call it from module_init(to get
> > a process context). But i read somewhere that the process context for
> > call_usermodehelper is obtained by creating a thread from the
> > kernel-event daemon. If that is the case, can i invoke
> > call_usermodehelper from a timer function?
>
> call_usermodehelper has to be called from process context. Timer
> functions aren't, so no you can't do that.
> What you can do is schedule an event and have that event call it
> instead.

Not very clear about wat you mean by "schedule an event". Can you
write just a line or two giving some pointers in that direction (like
which kernel API's) ?

Thanks,
Indraneel
>
>
>

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[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