Alloc/Free API Calls
Posted: Tue Feb 04, 2003 5:41 am
What is the best way for kernel modules to allocate/free memory. I thought of two possibilties:
1. Have an ISR to do it, maybe latch the allocator and freer-upper (cool word) onto different interrupts. Only worry with this is speed. Context switching won't be an issue for kernel modules but maybe user code will be affected.
2. When loading executables bind them to the alloc/free functions directly. This will be fast but does kind of make things a lot more monolithic.
Any other suggestions?
1. Have an ISR to do it, maybe latch the allocator and freer-upper (cool word) onto different interrupts. Only worry with this is speed. Context switching won't be an issue for kernel modules but maybe user code will be affected.
2. When loading executables bind them to the alloc/free functions directly. This will be fast but does kind of make things a lot more monolithic.
Any other suggestions?