PsUpdateDiskCounters routine

The PsUpdateDiskCounters routine updates the disk I/O counters of a given process.

Syntax


VOID PsUpdateDiskCounters(
   PEPROCESS Process,
   ULONG64   BytesRead,
   ULONG64   BytesWritten,
   ULONG     ReadOperationCount,
   ULONG     WriteOperationCount,
   ULONG     FlushOperationCount
);

Parameters

Process

A pointer to the process to update counters for.

BytesRead

The number of bytes to update in the Read counter.

BytesWritten

The number of bytes to update in the Write counter.

ReadOperationCount

The number of read operations to update in the Read Operation counter.

WriteOperationCount

The number of write operations to update in the Write Operation counter.

FlushOperationCount

The number of flush operations to update in the Flush Operation counter.

Return value

This routine does not return a value.

Remarks

File system drivers use PsUpdateDiskCounters to update counts for disk I/O accounting. A client process can be "charged" the disk I/O counts by the file system.

Requirements

Target platform

Universal

Version

Available starting with Windows 8.

Header

Ntifs.h (include Ntifs.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

<= DISPATCH_LEVEL

See also

PsIsDiskCountersEnabled

 

 

Send comments about this topic to Microsoft

Show: