FsRtlAreThereCurrentOrInProgressFileLocks function (ntifs.h)

TheFsRtlAreThereCurrentOrInProgressFileLocks routine determines if there are byte range locks assigned to a file or any lock operations in progress for that file.

Syntax

BOOLEAN FsRtlAreThereCurrentOrInProgressFileLocks(
  [in] PFILE_LOCK FileLock
);

Parameters

[in] FileLock

A pointer to the FILE_LOCK structure for the file to be checked.

Return value

The routine returns TRUE when there are any byte range locks assigned to the file or when there are byte range lock requests in progress for the file. Otherwise, the routine returns FALSE.

Remarks

File systems can use the FsRtlAreThereCurrentOrInProgressFileLocks routine in Oplock Semantics to determine whether to grant a shared oplock.

Requirements

Requirement Value
Minimum supported client Windows 7
Target Platform Universal
Header ntifs.h (include FltKernel.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <=APC_LEVEL

See also

FILE_LOCK

FsRtlAllocateFileLock

FsRtlGetNextFileLock

FsRtlInitializeFileLock