Re: How to use realloc and free in an ISR
- From: "Ole" <ole@xxxxxxxxxx>
- Date: Thu, 7 Dec 2006 19:15:00 +0100
Ok, Thanks - will use the kLibAllocShareMem instead.
BR
Ole
"Andrew at Plextek (www.plextek.co.uk)" <ams@xxxxxxxxxxx> wrote in message
news:1165507853.059510.102010@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Ole,
ISR DLL's cannot call external DLLs so you can't allocate and free in
your ISR. If you are only allocating at startup then use the function
KLibAllocShareMem() in your driver init. This will give you a buffer
that is visible both to the ISR and the IST. You can then pass the
address of the buffer to the ISR by implementing an IOCTL (see the
GIISR.C example).
When you unload your ISR in driver deinit then call KLibFreeShareMem()
to free the buffer.
Remember, as a rule you should do as little as possible in an ISR and
let an IST do all the work for you.
Regards,
Andrew.
Ole wrote:
Cause of the lattency between ISR and IST - the alloc is only done during
setup - not during run.
Thanks
Ole
"Bruce Eitman [eMVP]" <beitman.nospam@xxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:%23EQ9n2gGHHA.4652@xxxxxxxxxxxxxxxxxxxxxxx
If you have time to do that in the ISR, why not move that to the IST?
--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net
Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member
"Ole" <ole@xxxxxxxxxx> wrote in message
news:OylIfGgGHHA.4712@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
How to use realloc and free in an ISR dll? or should I use some other
technique?
Thanks
Ole
.
- References:
- How to use realloc and free in an ISR
- From: Ole
- Re: How to use realloc and free in an ISR
- From: Bruce Eitman [eMVP]
- Re: How to use realloc and free in an ISR
- From: Ole
- Re: How to use realloc and free in an ISR
- From: Andrew at Plextek (www.plextek.co.uk)
- How to use realloc and free in an ISR
- Prev by Date: Re: Sysgen links kernkitl.exe even when IMGNOKITL=1
- Next by Date: Re: Device emulator debugging using VS2005 with PB for CE 6.0
- Previous by thread: Re: How to use realloc and free in an ISR
- Next by thread: Re: Device emulator debugging using VS2005 with PB for CE 6.0
- Index(es):
Relevant Pages
|
|