Re: IODataQueueDequeue problem in user mode
Re: IODataQueueDequeue problem in user mode
- Subject: Re: IODataQueueDequeue problem in user mode
- From: Slava Imameyev <email@hidden>
- Date: Mon, 7 Feb 2011 15:31:49 +1100
IODataQueue is a "single reader - single writer" queue, use a lock( which allows rescheduling while being held ) in the kernel as I presume you are calling enqueue() from different thread contexts
On Tue, Feb 1, 2011 at 8:55 PM, sheetal phirke
<email@hidden> wrote:
Hi,
I am sending structure from kernel to user by using IODataQueue. It contains file name & some other information. Sometime in user mode it will dequeue data faster than enqueue or it will go to loop. I have also gone through documents & examples but din't get anything...
If anyone experience the same then please explain me where I will be wrong?
Thanks ,
Sheetal.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden