Re: [darwin-dev] Memory Allocation in Interrupt Handlers?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com In message <16F823A7-F427-45D2-ADAD-9B64D09CB746@gmail.com>,Shawn Erickson writ es:
On May 8, 2007, at 7:39 AM, Alexander von Below wrote:
Or would I have to allocate all my memory prior to going into interrupt context?
You should make all attempts to allocate memory before hand.
it depends on how you are handling your interrupts. if you arent "taking interrupts directly" then the interrupt thread is the same as any other thread so you dont need to do any special with regard to memory. if you are are taking interrupt directly, then you need to worry about anything that might sleep (like allocating memory). see developer.apple.com about doing this. _______________________________________________ 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
chas williams - CONTRACTOR