Re: Problem with semaphore_wait & its correct usage.
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com I'm writing a kext driver , using semaphore calls. My application is hanging when the semaphore_wait is executed. Obvious errors: - You're sleeping a different semaphore than you wake up Have you considered using an IOCommandQueue or IOCommandGate instead? -- Terry _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On Aug 6, 2007, at 8:01 PM, JanakiRam wrote: You need to read Chapter 15 of the Kernel Programming Guide: Semaphores. It's located here: <http://developer.apple.com/documentation/Darwin/Conceptual/KernelProgramming...
- Your start/stop functions incorrectly return success when they shouldn't. - The semaphore may not be initialized - You may permit an unload while the PC for some thread is still in the KEXT (panic) <http://developer.apple.com/documentation/Darwin/Reference/KernelIOKitFramewo...
This email sent to site_archiver@lists.apple.com
participants (1)
-
Terry Lambert