site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Terry, On 7.3.2007, at 13:40, Terry Lambert wrote: alloc_item if (OK) { alloc_and_fill_names if (OK) { if (limit_reached) dequeue_last enqueue_item } } _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... It might be important that, like Kauthorama does, when the limit is reached I don't cease malloc'ing; instead, for each malloc I release the oldest queued item. Essentially, the algorithm is How do you protect your queue against reentrancy by multiple threads of control, resulting in corruption of the queue? Using locks (lck_mtx_lock/unlock). That's irrelevant to the problem though: the KEXT crashes even if the queue access is completely commented out. --- Ondra Čada OCSoftware: ocs@ocs.cz http://www.ocs.cz private ondra@ocs.cz http://www.ocs.cz/oc This email sent to site_archiver@lists.apple.com