Hi all,
I am using IOkiit framework for my
driver in cpp and Mac OS 10.4.8.
I use new operator for my requirement.
My different instances allocates memory
in init().
But after 10 instances of my driver all
my new inside my program start returning null.
Even small allocation of new returns
NULL.
Due to this all the 9 instances start failing
to allocate.
How to avoid this, if new uses physical
memory then is their any way to allocate virtual memory.
vm_allocate() is not present.
Also is their any function to check how
much memory is left in kernel space. So, that I will not allocate for next
instance and the running instances does not get affected.
IOmalloc and malloc not able to allocate
memory for my requirement.
For eg.
I require 80 kb memory for 10Gb of disk
+ 20 kb memory for remaining program.
If I run 4 instances for 4 disk of 10gb all
my new() start failing.
My actual requirement is to run 10
instances at most mentioned above.
Please suggest if there are any other
option or some changes can be done in above problem.
Thanks,
Kumar Gaurav