All of lore.kernel.org
 help / color / mirror / Atom feed
* The purpose of calling init_waitqueue_head()
@ 2014-02-22  6:03 m silverstri
  0 siblings, 0 replies; only message in thread
From: m silverstri @ 2014-02-22  6:03 UTC (permalink / raw)
  To: kernelnewbies

Hi,

I am trying to understanding a linux driver code here:

https://android.googlesource.com/kernel/exynos/+/a6a1de6334417e0800440cdf971270df6f90b2fa/drivers/media/video/exynos/jpeg/

In here

https://android.googlesource.com/kernel/exynos/+/a6a1de6334417e0800440cdf971270df6f90b2fa/drivers/media/video/exynos/jpeg/jpeg_dev.c,
it calls 'init_waitqueue_head() where wq  is a "wait_queue_head_t
  wq;"

      mutex_init(&ctrl->lock);
        init_waitqueue_head(&ctrl->wq);

But I search the whole directory for wq usage, I don't find anywhere wq is used.
Can you please tell me what is the purpose of calling "init_waitqueue_head"?

Thank you.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-02-22  6:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-22  6:03 The purpose of calling init_waitqueue_head() m silverstri

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.