AtaPortRegistryFreeBuffer function (irb.h)

The AtaPortRegistryFreeBuffer routine frees the registry buffer that was allocated by using AtaPortRegistryAllocateBuffer.

Note  The ATA port driver and ATA miniport driver models may be altered or unavailable in the future. Instead, we recommend using the Storport driver and Storport miniport driver models.
 

Syntax

void AtaPortRegistryFreeBuffer(
  [in] PVOID ChannelExtension,
  [in] PVOID Buffer
);

Parameters

[in] ChannelExtension

A pointer to the channel extension.

[in] Buffer

A pointer to the buffer to free.

Return value

None

Remarks

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.

Requirements

Requirement Value
Target Platform Desktop
Header irb.h (include Ata.h, Irb.h)
Library Ataport.lib; Pciidex.lib

See also

AtaChannelInitRoutine

AtaPortRegistryAllocateBuffer

IdeHwControl