Export (0) Print
Expand All
Expand Minimize

FsRtlFastUnlockAll routine

The FsRtlFastUnlockAll routine releases all byte-range locks that were acquired by the specified process for a file.

Syntax


NTSTATUS FsRtlFastUnlockAll(
  _In_     PFILE_LOCK   FileLock,
  _In_     PFILE_OBJECT FileObject,
  _In_     PEPROCESS    ProcessId,
  _In_opt_ PVOID        Context
);

Parameters

FileLock [in]

Pointer to the FILE_LOCK structure for the file. This structure must have been initialized by a previous call to FsRtlAllocateFileLock or FsRtlInitializeFileLock.

FileObject [in]

Pointer to the file object for the file.

ProcessId [in]

Pointer to the process ID for the process.

Context [in, optional]

Optional context pointer to be used when completing IRPs.

Return value

FsRtlFastUnlockAll returns STATUS_SUCCESS or an error status code such as STATUS_RANGE_NOT_LOCKED.

Remarks

After releasing the byte-range locks, FsRtlFastUnlockAll completes any currently queued lock IRPs that can now be completed.

Requirements

Target platform

Universal

Header

Ntifs.h (include Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<= APC_LEVEL

See also

FsRtlAllocateFileLock
FsRtlInitializeFileLock

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft