#include "exp.h"#include "nturtl.h"Go to the source code of this file.
|
|
Definition at line 74 of file ex/resource.c. |
|
|
Definition at line 57 of file ex/resource.c. |
|
|
Definition at line 134 of file ex/resource.c. Referenced by ExAcquireResourceExclusiveLite(), ExAcquireResourceSharedLite(), ExAcquireSharedStarveExclusive(), ExAcquireSharedWaitForExclusive(), ExpFindCurrentThread(), and ExTryToAcquireResourceExclusiveLite(). |
|
|
Definition at line 51 of file ex/resource.c. |
|
|
Definition at line 48 of file ex/resource.c. |
|
|
Definition at line 50 of file ex/resource.c. |
|
|
Definition at line 49 of file ex/resource.c. Referenced by ExConvertExclusiveToSharedLite(), ExDeleteResourceLite(), ExpWaitForResource(), ExReleaseResourceForThreadLite(), and ExReleaseResourceLite(). |
|
||||||||||||
|
Definition at line 492 of file ex/resource.c. References _ERESOURCE::ActiveCount, ASSERT, ASSERT_RESOURCE, ERESOURCE_THREAD, Event(), ExpAcquireResourceExclusiveLite(), ExpIncrementCounter, FALSE, _ERESOURCE::Flag, IsOwnedExclusive, _OWNER_ENTRY::OwnerCount, _OWNER_ENTRY::OwnerThread, _ERESOURCE::OwnerThreads, PsGetCurrentThread, Resource, ResourceNeverExclusive, ResourceOwnedExclusive, _ERESOURCE::SpinLock, and TRUE. Referenced by ChangeAcquireResourceType(), EnterCrit(), ExpAcquireResourceExclusiveLite(), LeaveMouseCrit(), and VerifierExAcquireResourceExclusive().
|
|
||||||||||||
|
Definition at line 762 of file ex/resource.c. References _ERESOURCE::ActiveCount, ASSERT, ASSERT_RESOURCE, ERESOURCE_THREAD, ExAllocatePoolWithTag, ExpFindCurrentThread(), ExpIncrementCounter, ExpWaitForResource(), FALSE, IsExclusiveWaiting, IsOwnedExclusive, KeInitializeSemaphore(), NonPagedPoolMustSucceed, NULL, _ERESOURCE::NumberOfSharedWaiters, _OWNER_ENTRY::OwnerCount, _OWNER_ENTRY::OwnerThread, _ERESOURCE::OwnerThreads, PsGetCurrentThread, Resource, _ERESOURCE::SharedWaiters, _ERESOURCE::SpinLock, and TRUE. Referenced by EnterSharedCrit().
|
|
||||||||||||
|
Definition at line 1014 of file ex/resource.c. References _ERESOURCE::ActiveCount, ASSERT, ASSERT_RESOURCE, ERESOURCE_THREAD, ExAllocatePoolWithTag, ExpFindCurrentThread(), ExpIncrementCounter, ExpWaitForResource(), FALSE, IsOwnedExclusive, KeInitializeSemaphore(), NonPagedPoolMustSucceed, NULL, _ERESOURCE::NumberOfSharedWaiters, _OWNER_ENTRY::OwnerCount, _OWNER_ENTRY::OwnerThread, _ERESOURCE::OwnerThreads, PsGetCurrentThread, Resource, _ERESOURCE::SharedWaiters, _ERESOURCE::SpinLock, and TRUE. Referenced by CcPinFileData(), CcPinMappedData(), and UdfAcquireResource().
|
|
||||||||||||
|
Definition at line 1165 of file ex/resource.c. References _ERESOURCE::ActiveCount, ASSERT, ASSERT_RESOURCE, ERESOURCE_THREAD, ExAllocatePoolWithTag, ExpFindCurrentThread(), ExpIncrementCounter, ExpWaitForResource(), FALSE, IsExclusiveWaiting, IsOwnedExclusive, KeInitializeSemaphore(), NonPagedPoolMustSucceed, NULL, _ERESOURCE::NumberOfSharedWaiters, _OWNER_ENTRY::OwnerCount, _OWNER_ENTRY::OwnerThread, _ERESOURCE::OwnerThreads, PsGetCurrentThread, Resource, _ERESOURCE::SharedWaiters, _ERESOURCE::SpinLock, and TRUE. Referenced by FsRtlAcquireFileForModWrite().
|
|
|
Definition at line 1942 of file ex/resource.c. References _ERESOURCE::ActiveCount, ASSERT, ASSERT_RESOURCE, ERESOURCE_THREAD, FALSE, _ERESOURCE::Flag, IsOwnedExclusive, IsSharedWaiting, KeReleaseSemaphore(), _ERESOURCE::NumberOfSharedWaiters, _OWNER_ENTRY::OwnerThread, _ERESOURCE::OwnerThreads, PsGetCurrentThread, Resource, ResourceOwnedExclusive, _ERESOURCE::SharedWaiters, SHORT, and _ERESOURCE::SpinLock.
|
|
|
Definition at line 2005 of file ex/resource.c. References _RESOURCE_PERFORMANCE_DATA::ActiveResourceCount, _ERESOURCE::Address, _RESOURCE_HASH_ENTRY::Address, ASSERT, ASSERT_RESOURCE, _RESOURCE_HASH_ENTRY::ContentionCount, _ERESOURCE::ContentionCount, ExAllocatePoolWithTag, _ERESOURCE::ExclusiveWaiters, ExFreePool(), ExpResourceSpinLock, FALSE, _RESOURCE_PERFORMANCE_DATA::HashTable, IsExclusiveWaiting, IsSharedWaiting, _RESOURCE_HASH_ENTRY::ListEntry, NonPagedPool, NULL, _RESOURCE_HASH_ENTRY::Number, _ERESOURCE::OwnerTable, PRESOURCE_HASH_ENTRY, Resource, RESOURCE_HASH_ENTRY, RESOURCE_HASH_TABLE_SIZE, _ERESOURCE::SharedWaiters, and _ERESOURCE::SystemResourcesList.
|
|
|
Definition at line 370 of file ex/resource.c. References ASSERT_RESOURCE, DisablePriorityBoost, _ERESOURCE::Flag, Resource, and _ERESOURCE::SpinLock.
|
|
|
Definition at line 2133 of file ex/resource.c. References _ERESOURCE::NumberOfExclusiveWaiters, and Resource. Referenced by MNAnimate().
|
|
|
Definition at line 2160 of file ex/resource.c. References _ERESOURCE::NumberOfSharedWaiters, and Resource. Referenced by MNAnimate().
|
|
|
Definition at line 209 of file ex/resource.c. References _RESOURCE_PERFORMANCE_DATA::ActiveResourceCount, _ERESOURCE::Address, ASSERT, _ERESOURCE::CreatorBackTraceIndex, ExInterlockedInsertTailList(), ExpResourceSpinLock, ExpSystemResourcesList, KeInitializeSpinLock(), MmDeterminePoolType(), NonPagedPool, NtGlobalFlag, Resource, RtlGetCallersAddress(), _ERESOURCE::SpinLock, _ERESOURCE::SystemResourcesList, and _RESOURCE_PERFORMANCE_DATA::TotalResourceCount. Referenced by InitCreateUserCrit(), ObCreateObjectType(), and ObInitSystem().
|
|
|
Definition at line 2187 of file ex/resource.c. References ASSERT_RESOURCE, ERESOURCE_THREAD, FALSE, IsOwnedExclusive, _OWNER_ENTRY::OwnerThread, _ERESOURCE::OwnerThreads, PsGetCurrentThread, Resource, _ERESOURCE::SpinLock, and TRUE. Referenced by RequestDeviceChange(), StartDeviceRead(), UpdateJob(), UserIsUserCritSecIn(), UserJobCallout(), and xxxUserFindHandleForObject().
|
|
|
Definition at line 2245 of file ex/resource.c. References ASSERT_RESOURCE, ERESOURCE_THREAD, Index, NULL, _OWNER_ENTRY::OwnerCount, _ERESOURCE::OwnerTable, _OWNER_ENTRY::OwnerThread, _ERESOURCE::OwnerThreads, PsGetCurrentThread, Resource, _ERESOURCE::SpinLock, and _OWNER_ENTRY::TableSize. Referenced by UserIsUserCritSecIn(), and xxxUserFindHandleForObject().
|
|
||||||||||||
|
Definition at line 410 of file ex/resource.c. References ERESOURCE_THREAD, Event(), ExAcquireResourceExclusiveLite(), ExAllocatePoolWithTag, _ERESOURCE::ExclusiveWaiters, ExpWaitForResource(), FALSE, KeInitializeEvent, NonPagedPoolMustSucceed, NULL, _ERESOURCE::NumberOfExclusiveWaiters, _OWNER_ENTRY::OwnerThread, _ERESOURCE::OwnerThreads, PsGetCurrentThread, Resource, _ERESOURCE::SpinLock, and TRUE. Referenced by ExAcquireResourceExclusiveLite().
|
|
||||||||||||
|
Definition at line 2453 of file ex/resource.c. References KiSetPriorityThread(), and ROUND_TRIP_DECREMENT_COUNT. Referenced by ExpWaitForResource().
|
|
||||||||||||
|
Definition at line 2894 of file ex/resource.c. References DbgPrint, ExpResourceSpinLock, ExpSystemResourcesList, KeNumberProcessors, NULL, Resource, and Size. Referenced by ExFreePoolSanityChecks(), and MmUnloadSystemImage().
|
|
||||||||||||
|
Definition at line 2683 of file ex/resource.c. References ASSERT_RESOURCE, ExAllocatePoolWithTag, ExFreePool(), ExpIncrementCounter, KeBugCheck(), KeGetCurrentThread, KiLockDispatcherDatabase, KiUnlockDispatcherDatabase(), _RESOURCE_PERFORMANCE_DATA::MaximumTableExpand, NonPagedPool, NonPagedPoolMustSucceed, NULL, OWNER_ENTRY, _ERESOURCE::OwnerTable, _OWNER_ENTRY::OwnerThread, _ERESOURCE::OwnerThreads, PAGE_SIZE, Resource, and _OWNER_ENTRY::TableSize. Referenced by ExAcquireResourceSharedLite(), ExAcquireSharedStarveExclusive(), and ExAcquireSharedWaitForExclusive().
|
|
|
Definition at line 150 of file ex/resource.c. References _RESOURCE_PERFORMANCE_DATA::ActiveResourceCount, _RESOURCE_PERFORMANCE_DATA::ExclusiveAcquire, ExpResourceSpinLock, ExpSystemResourcesList, ExpTimeout, _RESOURCE_PERFORMANCE_DATA::HashTable, Index, KeInitializeSpinLock(), _RESOURCE_PERFORMANCE_DATA::MaximumTableExpand, _RESOURCE_PERFORMANCE_DATA::OwnerTableExpands, RESOURCE_HASH_TABLE_SIZE, _RESOURCE_PERFORMANCE_DATA::SharedFirstLevel, _RESOURCE_PERFORMANCE_DATA::SharedSecondLevel, _RESOURCE_PERFORMANCE_DATA::StarveFirstLevel, _RESOURCE_PERFORMANCE_DATA::StarveSecondLevel, _RESOURCE_PERFORMANCE_DATA::TotalResourceCount, TRUE, and _RESOURCE_PERFORMANCE_DATA::WaitForExclusive.
|
|
||||||||||||
|
Definition at line 2506 of file ex/resource.c. References _ERESOURCE::ActiveCount, _ERESOURCE::ContentionCount, DbgPrint, Executive, ExpBoostOwnerThread(), ExpResourceTimeoutCount, ExpTimeout, FALSE, Index, IsBoostAllowed, IsExclusiveWaiting, IsOwnedExclusive, IsSharedWaiting, KeGetCurrentThread, KernelMode, KeWaitForSingleObject(), KiLockDispatcherDatabase, NTSTATUS(), NULL, _ERESOURCE::NumberOfExclusiveWaiters, _OWNER_ENTRY::OwnerCount, _ERESOURCE::OwnerTable, _OWNER_ENTRY::OwnerThread, _ERESOURCE::OwnerThreads, Resource, _ERESOURCE::SpinLock, Status, _OWNER_ENTRY::TableSize, TRUE, _KTHREAD::WaitIrql, and _KTHREAD::WaitNext. Referenced by ExAcquireResourceSharedLite(), ExAcquireSharedStarveExclusive(), ExAcquireSharedWaitForExclusive(), and ExpAcquireResourceExclusiveLite().
|
|
||||||||||||||||
|
Definition at line 2335 of file ex/resource.c. References _ERESOURCE::ActiveCount, _NTDDK_ERESOURCE::ActiveCount, _ETHREAD::Cid, _ERESOURCE::ContentionCount, _NTDDK_ERESOURCE::ContentionCount, _NTDDK_ERESOURCE::CreatorBackTraceIndex, _ERESOURCE::CreatorBackTraceIndex, ExpResourceSpinLock, ExpSystemResourcesList, _NTDDK_ERESOURCE::InitialOwnerThreads, NTSTATUS(), NULL, _ERESOURCE::NumberOfExclusiveWaiters, _NTDDK_ERESOURCE::NumberOfExclusiveWaiters, _ERESOURCE::NumberOfSharedWaiters, _NTDDK_ERESOURCE::NumberOfSharedWaiters, _OWNER_ENTRY::OwnerThread, _ERESOURCE::OwnerThreads, _NTDDK_ERESOURCE::OwnerThreads, PNTDDK_ERESOURCE, Resource, Status, and USHORT. Referenced by ExpGetLockInformation().
|
|
|
Definition at line 273 of file ex/resource.c. References _ERESOURCE::ActiveCount, ASSERT, _ERESOURCE::ContentionCount, Event(), _ERESOURCE::ExclusiveWaiters, FALSE, _ERESOURCE::Flag, Index, KeInitializeEvent, KeInitializeSemaphore(), KeInitializeSpinLock(), MmDeterminePoolType(), NonPagedPool, NULL, _ERESOURCE::NumberOfExclusiveWaiters, _ERESOURCE::NumberOfSharedWaiters, _OWNER_ENTRY::OwnerCount, _ERESOURCE::OwnerTable, _OWNER_ENTRY::OwnerThread, _ERESOURCE::OwnerThreads, Resource, _ERESOURCE::SharedWaiters, _ERESOURCE::SpinLock, and _OWNER_ENTRY::TableSize.
|
|
||||||||||||
|
Definition at line 1607 of file ex/resource.c. References _ERESOURCE::ActiveCount, ASSERT, ASSERT_RESOURCE, _ERESOURCE::ExclusiveWaiters, FALSE, _ERESOURCE::Flag, Index, IsExclusiveWaiting, IsOwnedExclusive, IsSharedWaiting, KeReleaseSemaphore(), KeSetEventBoostPriority(), NULL, _ERESOURCE::NumberOfExclusiveWaiters, _ERESOURCE::NumberOfSharedWaiters, _OWNER_ENTRY::OwnerCount, _ERESOURCE::OwnerTable, _OWNER_ENTRY::OwnerThread, _ERESOURCE::OwnerThreads, Resource, ResourceOwnedExclusive, _ERESOURCE::SharedWaiters, SHORT, _ERESOURCE::SpinLock, _OWNER_ENTRY::TableSize, and TRUE.
|
|
|
Definition at line 1389 of file ex/resource.c. References _ERESOURCE::ActiveCount, ASSERT, ASSERT_RESOURCE, ERESOURCE_THREAD, _ERESOURCE::ExclusiveWaiters, FALSE, _ERESOURCE::Flag, Index, IsExclusiveWaiting, IsOwnedExclusive, IsSharedWaiting, KeBugCheckEx(), KeReleaseSemaphore(), KeSetEventBoostPriority(), NULL, _ERESOURCE::NumberOfExclusiveWaiters, _ERESOURCE::NumberOfSharedWaiters, _OWNER_ENTRY::OwnerCount, _ERESOURCE::OwnerTable, _OWNER_ENTRY::OwnerThread, _ERESOURCE::OwnerThreads, PsGetCurrentThread, Resource, ResourceOwnedExclusive, _ERESOURCE::SharedWaiters, SHORT, _ERESOURCE::SpinLock, and _OWNER_ENTRY::TableSize. Referenced by MmTrimAllSystemPagableMemory(), and VerifierExReleaseResource().
|
|
||||||||||||
|
Definition at line 1820 of file ex/resource.c. References ASSERT, ASSERT_RESOURCE, ERESOURCE_THREAD, Index, IsOwnedExclusive, NULL, _OWNER_ENTRY::OwnerCount, _ERESOURCE::OwnerTable, _OWNER_ENTRY::OwnerThread, _ERESOURCE::OwnerThreads, PsGetCurrentThread, Resource, _ERESOURCE::SpinLock, _OWNER_ENTRY::TableSize, and TRUE. Referenced by CcSetBcbOwnerPointer().
|
|
|
Definition at line 598 of file ex/resource.c. References _ERESOURCE::ActiveCount, ASSERT, ASSERT_RESOURCE, ERESOURCE_THREAD, ExpIncrementCounter, FALSE, _ERESOURCE::Flag, IsOwnedExclusive, _OWNER_ENTRY::OwnerCount, _OWNER_ENTRY::OwnerThread, _ERESOURCE::OwnerThreads, PsGetCurrentThread, Resource, ResourceNeverExclusive, ResourceOwnedExclusive, _ERESOURCE::SpinLock, and TRUE. Referenced by MiEmptyWorkingSet(), MmTrimAllSystemPagableMemory(), and MmWorkingSetManager().
|
|
|
Definition at line 114 of file ex/resource.c. Referenced by ExDeleteResourceLite(), ExInitializeResourceLite(), ExpCheckForResource(), ExpResourceInitialization(), and ExQuerySystemLockInformation(). |
|
|
Definition at line 108 of file ex/resource.c. |
|
|
Definition at line 120 of file ex/resource.c. |
|
|
Definition at line 102 of file ex/resource.c. Referenced by ExpResourceInitialization(), ExpWaitForResource(), and ExpWaitForResourceDdk(). |
1.3.7