Condividi tramite


Funzione AtaPortRegistryFreeBuffer (irb.h)

La routine AtaPortRegistryFreeBu ffer libera il buffer del Registro di sistema allocato tramite AtaPortRegistryAllocateBuffer.

Nota I modelli di driver di porta ATA e miniport ATA potrebbero essere modificati o non disponibili in futuro. È invece consigliabile usare driver Storport e modelli di driver miniport Storport.
 

Sintassi

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

Parametri

[in] ChannelExtension

Puntatore all'estensione del canale.

[in] Buffer

Puntatore al buffer da liberare.

Valore restituito

Nessuno

Osservazioni

AtaPortRegistryFreeBuffer scarica le operazioni di scrittura posticipate nel Registro di sistema.

Il driver miniport deve chiamare AtaPortRegistryFreeBuffer nella routine AtaChannelInitRoutine o nella routine IdeHwControl. Non è possibile chiamare AtaPortRegistryFreeBuffer da qualsiasi altra routine. Inoltre, il driver miniport può chiamare solo AtaPortRegistryFreeBuffer dalla routine IdeHwControl se è stata chiamata la routine IdeHwControl e ha un valore StartChannel o StopChannel nel parametro ControlAction .

Fabbisogno

Requisito Valore
piattaforma di destinazione Desktop
intestazione irb.h (include Ata.h, Irb.h)
libreria Ataport.lib; Pciidex.lib

Vedere anche

AtaChannelInitRoutine

AtaPortRegistryAllocateBuffer

IdeHwControl