NdisUnmapFile

VOID
NdisUnmapFile(

IN NDIS_HANDLE FileHandle
);

NdisUnmapFile releases a virtual address mapping of a file previously set up with NdisMapFile.

Parameters

FileHandle

Specifies the handle returned by NdisOpenFile.

Comments

To reduce resource usage, a NIC driver should always call NdisUnmapFile when it no longer needs exclusive access to the contents of a file that it opened. Such a driver can map and unmap the file as necessary, using alternating calls to NdisMapFile and NdisUnmapFile until it releases the file handle with NdisCloseFile.

Callers of NdisUnmapFile run at IRQL PASSIVE_LEVEL.

See Also

MiniportInitialize, NdisCloseFile, NdisMapFile, NdisOpenFile