Expand Minimize

FsRtlCheckLockForOplockRequest routine

The FsRtlCheckLockForOplockRequest routine checks for locks within the allocation size of a file. The file lock object is checked for the presence of byte range locks that would prevent an oplock request from being granted.

Syntax


BOOLEAN FsRtlCheckLockForOplockRequest(
  _In_  PFILE_LOCK FileLock,
  _In_  PLARGE_INTEGER AllocationSize
);

Parameters

FileLock [in]

The file lock that specifies locked ranges.

AllocationSize [in]

The file allocation size to check for any locked ranges.

Return value

FsRtlCheckLockForOplockRequest returns TRUE if the oplock request can be granted; FALSE otherwise.

Remarks

FsRtlCheckLockForOplockRequest returns TRUE if AllocationSize = 0.

If FileLock has any pending lock requests, the check fails and FsRtlCheckLockForOplockRequest returns FALSE.

Requirements

Version

Available starting with Windows 8.

Header

Ntifs.h (include Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<= APC_LEVEL

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft