Re: Workqueues

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

 



On Mon, Oct 4, 2010 at 12:59 PM, Vimal <j.vimal@xxxxxxxxx> wrote:
>
> Hi Arun,
>
> > Have a look here,
> > http://lwn.net/Articles/211279/
>
> Thanks a lot for the link.  However, I am still confused how one would
> go about doing something like this using workqueues:
>
>  performance critical path:  (this is like a producer)
>     queue(work on a *particular data* D)
>
>  worker thread:  (this is like a consumer of queued work)
>     while(1) {
>       wait for work+data D on queue
>       perform work on data D
>       remove data D from queue
>     }

There is a default worker thread. Your driver will queue work. Work
queue is an interface for deferring work to a kernel thread. If
possible see work queue in Linux kernel development by Robert Love.
He has explained it well.
Or you can read it here,
http://www.linuxjournal.com/article/6916?page=0,0

Arun
>
> It is unclear how to do the above using workqueues.  Are there some
> examples for this new API?
>
> Thanks,
> --
> Vimal

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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