public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* wait queue sharing..
@ 2005-03-11 11:41 Mohan
  2005-03-12 18:53 ` Kedar Sovani
  0 siblings, 1 reply; 2+ messages in thread
From: Mohan @ 2005-03-11 11:41 UTC (permalink / raw)
  To: linux-kernel

Hello All,

I have a question regarding the wait queues. I have a driver
pxausb_core.o which is the core driver which does all USB endpoint
handling and hardware interaction. I have one more driver on top of it
usb-serial which provides for the user-level interaction(like read,
write, ioctl).
I have implemented a blocking ioctl, which sends events about the state
of USB device(enumerated, suspended, disconnected, etc).
For this ioctl, i have declared a wait_queue and initialized (using
init_waitqueue_head() func.) in the usb_ctl.c which is part of
pxausb_core.o. (it has usb_send.c, usb_recv.c, usb_ctl.c, usb_ep0.c).
I am using that wait_queue variable in usb-ser.c.

I just wanted to clarify myself whether the wait queues can be shared
between two driver modules.

Thank you...
regards,
mohan

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

* Re: wait queue sharing..
  2005-03-11 11:41 wait queue sharing Mohan
@ 2005-03-12 18:53 ` Kedar Sovani
  0 siblings, 0 replies; 2+ messages in thread
From: Kedar Sovani @ 2005-03-12 18:53 UTC (permalink / raw)
  To: mohanv; +Cc: linux-kernel

Yes, technically, you can share the wait queue between two modules.
Ofcourse, provided you can manage to initialise it before any use.

Kedar.

On Fri, 11 Mar 2005 17:11:18 +0530, Mohan <mohanv@aftek.com> wrote:
> Hello All,
> 
> I have a question regarding the wait queues. I have a driver
> pxausb_core.o which is the core driver which does all USB endpoint
> handling and hardware interaction. I have one more driver on top of it
> usb-serial which provides for the user-level interaction(like read,
> write, ioctl).
> I have implemented a blocking ioctl, which sends events about the state
> of USB device(enumerated, suspended, disconnected, etc).
> For this ioctl, i have declared a wait_queue and initialized (using
> init_waitqueue_head() func.) in the usb_ctl.c which is part of
> pxausb_core.o. (it has usb_send.c, usb_recv.c, usb_ctl.c, usb_ep0.c).
> I am using that wait_queue variable in usb-ser.c.
> 
> I just wanted to clarify myself whether the wait queues can be shared
> between two driver modules.
> 
> Thank you...
> regards,
> mohan

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

end of thread, other threads:[~2005-03-12 19:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-11 11:41 wait queue sharing Mohan
2005-03-12 18:53 ` Kedar Sovani

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