Re: [darwin-dev] Memory Allocation in Interrupt Handlers?
Re: [darwin-dev] Memory Allocation in Interrupt Handlers?
- Subject: Re: [darwin-dev] Memory Allocation in Interrupt Handlers?
- From: "chas williams - CONTRACTOR" <email@hidden>
- Date: Wed, 09 May 2007 15:05:48 -0400
In message <email@hidden>,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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden