mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: how to use schedule_work()
  2005-02-26 16:23 how to use schedule_work() Payasam Manohar
@ 2005-02-26 14:21 ` Vicente Feito
  2005-02-26 17:26   ` Payasam Manohar
  0 siblings, 1 reply; 5+ messages in thread
From: Vicente Feito @ 2005-02-26 14:21 UTC (permalink / raw)
  To: Payasam Manohar; +Cc: linux-kernel

This is for workqueues, it includes schedule_work() and how to call it
http://lwn.net/Articles/23634/

Vicente

^ permalink raw reply	[flat|nested] 5+ messages in thread

* how to use schedule_work()
@ 2005-02-26 16:23 Payasam Manohar
  2005-02-26 14:21 ` Vicente Feito
  0 siblings, 1 reply; 5+ messages in thread
From: Payasam Manohar @ 2005-02-26 16:23 UTC (permalink / raw)
  To: linux-kernel


hai all,
    I want to call call_usermodehelper() from schedule_work() to run the
user program in the process context. Can u please tell me how to call 
schedule_work(), plz give any reference manual for that.

Any help appreciated.




   Thanks&Regards,
   KernelNewbie.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to use schedule_work()
  2005-02-26 14:21 ` Vicente Feito
@ 2005-02-26 17:26   ` Payasam Manohar
  0 siblings, 0 replies; 5+ messages in thread
From: Payasam Manohar @ 2005-02-26 17:26 UTC (permalink / raw)
  To: Vicente Feito; +Cc: linux-kernel

hai,
    Thanks for information, I have already seen that material.
If you find any more info regarding that plz send it to me.





   Thanks&Regards,
   KernelNewbie.



On Sat, 26 Feb 2005, Vicente Feito wrote:

> This is for workqueues, it includes schedule_work() and how to call it
> http://lwn.net/Articles/23634/
>
> Vicente
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to use schedule_work()
  2005-02-26 16:59 Parag Warudkar
@ 2005-02-26 17:06 ` Payasam Manohar
  0 siblings, 0 replies; 5+ messages in thread
From: Payasam Manohar @ 2005-02-26 17:06 UTC (permalink / raw)
  To: Parag Warudkar; +Cc: linux-kernel

hai,
     Thanks for the information.






   Thanks&Regards,
    KernelNewbie.

  eb 2005, Parag Warudkar wrote:

>>
>> hai all,
>>     I want to call call_usermodehelper() from schedule_work() to run the
>> user program in the process context. Can u please tell me how to call
>> schedule_work(), plz give any reference manual for that.
>>
> Download cscope from cscope.sourceforge.net - The site has a good tutorial on using it with linux kernel. (It's a source code searching tool - you can find for example, all functions that call a particular function and so on.) I find it very useful when you want to understand things from source code.
>
> Then find for schedule_work, look into the source where it is used and see if you can comprehend it that way.
>
> In essence - you need to setup and initialize a struct work_struct (this cannot be on a function local stack since callers stack will not be available when the work is executed) fill it with function to be called and arguments to be passed and then call schedule_work from say an interrupt.
>
> Parag
>
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to use schedule_work()
@ 2005-02-26 16:59 Parag Warudkar
  2005-02-26 17:06 ` Payasam Manohar
  0 siblings, 1 reply; 5+ messages in thread
From: Parag Warudkar @ 2005-02-26 16:59 UTC (permalink / raw)
  To: Payasam Manohar, linux-kernel

> 
> hai all,
>     I want to call call_usermodehelper() from schedule_work() to run the
> user program in the process context. Can u please tell me how to call 
> schedule_work(), plz give any reference manual for that.
> 
Download cscope from cscope.sourceforge.net - The site has a good tutorial on using it with linux kernel. (It's a source code searching tool - you can find for example, all functions that call a particular function and so on.) I find it very useful when you want to understand things from source code.

Then find for schedule_work, look into the source where it is used and see if you can comprehend it that way.

In essence - you need to setup and initialize a struct work_struct (this cannot be on a function local stack since callers stack will not be available when the work is executed) fill it with function to be called and arguments to be passed and then call schedule_work from say an interrupt.

Parag




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-02-26 17:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-26 16:23 how to use schedule_work() Payasam Manohar
2005-02-26 14:21 ` Vicente Feito
2005-02-26 17:26   ` Payasam Manohar
2005-02-26 16:59 Parag Warudkar
2005-02-26 17:06 ` Payasam Manohar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®