Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

StorPortGetLogicalUnit with dynamic allocations

Bob_KroeterBob_Kroeter Member Posts: 65
For a virtual storport miniport, i need to store disk information that varies in size in response to certain scsi commands that occur at run time. The size of memory needed can range from 0 bytes (typical) to extremely large sizes (test environment). It is straight forward to perform a memory allocation and store the pointer in the StorPortGetLogicalUnit area to have an appropriate sized buffer for this on a per-disk basis. The question I have is at what point can one free the memory? Say in the case the adapter is removed.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
Writing WDF Drivers 25 Feb 2019 OSR Seminar Space
Developing Minifilters 8 April 2019 OSR Seminar Space