Decide size(kMaximumEventsToHold ) in IODataQueue::withCapacity
Decide size(kMaximumEventsToHold ) in IODataQueue::withCapacity
- Subject: Decide size(kMaximumEventsToHold ) in IODataQueue::withCapacity
- From: sheetal phirke <email@hidden>
- Date: Wed, 02 Nov 2011 13:17:16 +0530 (IST)
Hello All,
I have used IODataQueue::withCapacity in my IOKit driver. I have created some shared queues in which data enqueue & dequeue are done synchronously. If queue no.1 is in use it will not use again until user dequeues the data.
What could be the size of kMaximumEventsToHold in IODataQueue::withCapacity?
I have try to keep this value as 1 & 2 but it will failed to enqueue after one or two enqueue. size 3 is working for me. I have also considered overhead value
DATA_QUEUE_ENTRY_HEADER_SIZE.
How to calculate ideal size for kMaximumEventsToHold ?
Thanks & Regards,
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