hitesh
2010-07-26 06:32:27 UTC
hi,
i am writing a storport miniport driver and i have to allocate memory.
which is the best option for allocating memory?
my requirement is i have to use that memory which can be accessed by
both host and device, want to use DMA also.
till now i found two options
1) allocate memory and lock the MDL pages. i dont know whether it is
possible in Storport miniport or not? i found the functions also. is
it advisable to lock the pages for a long time? till the driver is
loaded?
2) use storport function
StorPortAllocateContiguousMemorySpecifyCacheNode( )
3) use function StorPortGetUncachedExtension( )
if my memory allocation requirement is too much, then is it fine to
use uncached extension? and whcih of this function i should use
dynamically to allocate memory?
thnaks,
Hitesh
i am writing a storport miniport driver and i have to allocate memory.
which is the best option for allocating memory?
my requirement is i have to use that memory which can be accessed by
both host and device, want to use DMA also.
till now i found two options
1) allocate memory and lock the MDL pages. i dont know whether it is
possible in Storport miniport or not? i found the functions also. is
it advisable to lock the pages for a long time? till the driver is
loaded?
2) use storport function
StorPortAllocateContiguousMemorySpecifyCacheNode( )
3) use function StorPortGetUncachedExtension( )
if my memory allocation requirement is too much, then is it fine to
use uncached extension? and whcih of this function i should use
dynamically to allocate memory?
thnaks,
Hitesh