FsRtlCurrentBatchOplock function

A file system or filter driver calls FsRtlCurrentBatchOplock to determine whether there are any batch or filter opportunistic locks (oplocks) on a file.

Syntax

BOOLEAN FsRtlCurrentBatchOplock(
  POPLOCK Oplock
);

Parameters

Oplock

Opaque opportunistic lock pointer for the file. This pointer must have been initialized by a previous call to FsRtlInitializeOplock.

Return value

FsRtlCurrentBatchOplock returns TRUE if there are current outstanding batch or filter opportunistic locks; FALSE otherwise.

Remarks

FsRtlCurrentBatchOplock returns FALSE if no batch or filter opportunistic locks are currently held.

For detailed information about opportunistic locks, see the Microsoft Windows SDK documentation.

Minifilters should call FltCurrentBatchOplock instead of FsRtlCurrentBatchOplock.

Requirements

   
Target Platform Universal
Header ntifs.h (include Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <= APC_LEVEL

See also

FSCTL_OPBATCH_ACK_CLOSE_PENDING

FSCTL_OPLOCK_BREAK_ACKNOWLEDGE

FSCTL_OPLOCK_BREAK_ACK_NO_2

FSCTL_OPLOCK_BREAK_NOTIFY

FSCTL_REQUEST_BATCH_OPLOCK

FSCTL_REQUEST_FILTER_OPLOCK

FSCTL_REQUEST_OPLOCK_LEVEL_1

FSCTL_REQUEST_OPLOCK_LEVEL_2

FltCurrentBatchOplock

FsRtlCheckOplock

FsRtlInitializeOplock

FsRtlOplockFsctrl

FsRtlOplockIsFastIoPossible

FsRtlUninitializeOplock