AtaPortRegistryFreeBuffer function (irb.h)
The AtaPortRegistryFreeBuffer routine frees the registry buffer that was allocated by using AtaPortRegistryAllocateBuffer.
void AtaPortRegistryFreeBuffer(
[in] PVOID ChannelExtension,
[in] PVOID Buffer
);
[in] ChannelExtension
A pointer to the channel extension.
[in] Buffer
A pointer to the buffer to free.
None
AtaPortRegistryFreeBuffer flushes deferred write operations to the registry.
The miniport driver must call AtaPortRegistryFreeBuffer either in its AtaChannelInitRoutine routine or in its IdeHwControl routine. It cannot call AtaPortRegistryFreeBuffer from any other routine. Additionally, the miniport driver can only call AtaPortRegistryFreeBuffer from its IdeHwControl routine if its IdeHwControl routine was called and had a value of either StartChannel or StopChannel in its ControlAction parameter.
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | irb.h (include Ata.h, Irb.h) |
Library | Ataport.lib; Pciidex.lib |