>is it possible to allocate memory which i dont know during the
>initialization but dynamically e.g. in build io and start io i found
>that i am running out of memory for my command/data transfer
I would probably set the SRB extension size to cover the _largest possible_ command/data transfer.
>need to allocate some more memory? will this function
>"ScsiPortGetPhysicalAddress" works during that time also?
IIRC no. Only the IRP's MDL, the device extension and the SRB extension are covered by this mechanism in SCSIPORT. For instance, LUN extension is not.
--
Maxim S. Shatskih
Windows DDK MVP
http://www.storagecraft.com