DOC: Freeing Allocated Resources with IoAssignResources()Last reviewed: April 7, 1997Article ID: Q133705 |
3.51
WINDOWS NT
kbprg kbdocerr kbdocfix
The information in this article applies to:
SUMMARYThe Microsoft Win32 DDK version 3.51 online documentation incorrectly states that a device driver must call the IoAssignResources() function with a RequestedResources list specifying zero as the IO_RESOURCE_REQUIREMENTS_LIST's ListSize value to erase its claim on resources. The correct way for a driver to erase its claim on resources is to call the IoAssignResources() function with a value of NULL for the RequestedResources parameter.
MORE INFORMATIONA device driver should use the same API function to free resources that it used to allocate them. If the IoAssignResources() function is used to allocate resources, the IoAssignResources() function should be used to free them. If the IoReportResourceUsage() function is used to allocate resources, the IoReportResourceUsage() function should be used to free them. Note that these two API functions use different methods of freeing the resources they have claimed. A caller of the HalAssignSlotResources() function should use the IoAssignResources() function to free the resources it claimed because this API function internally calls the IoAssignResources() function. This documentation error has been corrected in the Windows NT DDK version 4.0 online documentation.
|
KBCategory: kbprg kbdocerr kbdocfix
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |