Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 967 of file filelock.c.
Referenced by FsRtlProcessFileLock().
{ PCOMBINED_LOCK_ELEMENT Entry; PLOCK_INFORMATION InternalInfo = FileLock->LockInformation; DPRINT("FsRtlFastUnlockAllByKey(%wZ,Key %x)\n", &FileObject->FileName, Key); // XXX Synchronize somehow if (!FileLock->LockInformation) return STATUS_RANGE_NOT_LOCKED; // no locks for (Entry = RtlEnumerateGenericTable(&InternalInfo->RangeTable, TRUE); Entry; Entry = RtlEnumerateGenericTable(&InternalInfo->RangeTable, FALSE)) { LARGE_INTEGER Length; // We'll take the first one to be the list head, and free the others first... Length.QuadPart = Entry->Exclusive.FileLock.EndingByte.QuadPart - Entry->Exclusive.FileLock.StartingByte.QuadPart; if (Entry->Exclusive.FileLock.Key == Key && Entry->Exclusive.FileLock.ProcessId == Process->UniqueProcessId) { FsRtlFastUnlockSingle (FileLock, Entry->Exclusive.FileLock.FileObject, &Entry->Exclusive.FileLock.StartingByte, &Length, Entry->Exclusive.FileLock.ProcessId, Entry->Exclusive.FileLock.Key, Context, TRUE); } } return STATUS_SUCCESS; }