Expand Minimize

FsRtlAreThereCurrentOrInProgressFileLocks routine

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

FileLock [in]

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

Version

Available in Windows 7 and later versions of the Windows operating system.

Header

Ntifs.h (include FltKernel.h or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<=APC_LEVEL

See also

FILE_LOCK
FsRtlAllocateFileLock
FsRtlGetNextFileLock
FsRtlInitializeFileLock
Oplock Semantics

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft