ReactOS  r76032
extypes.h File Reference

Go to the source code of this file.

Classes

struct  _GENERAL_LOOKASIDE
 
struct  _GENERAL_LOOKASIDE_POOL
 
struct  _PAGED_LOOKASIDE_LIST
 
struct  _NPAGED_LOOKASIDE_LIST
 
struct  _LOOKASIDE_LIST_EX
 
struct  _EX_RUNDOWN_REF
 
struct  _WORK_QUEUE_ITEM
 
struct  _OWNER_ENTRY
 
struct  _ERESOURCE
 
struct  _RESOURCE_HASH_ENTRY
 
struct  _RESOURCE_PERFORMANCE_DATA
 
struct  _ZONE_HEADER
 

Macros

#define EX_RUNDOWN_ACTIVE   0x1
 
#define EX_RUNDOWN_COUNT_SHIFT   0x1
 
#define EX_RUNDOWN_COUNT_INC   (1 << EX_RUNDOWN_COUNT_SHIFT)
 
#define LOOKASIDE_ALIGN   DECLSPEC_CACHEALIGN
 
#define GENERAL_LOOKASIDE_LAYOUT
 
#define LOOKASIDE_CHECK(f)   C_ASSERT(FIELD_OFFSET(GENERAL_LOOKASIDE,f) == FIELD_OFFSET(GENERAL_LOOKASIDE_POOL,f))
 
#define LOOKASIDE_MINIMUM_BLOCK_SIZE   (RTL_SIZEOF_THROUGH_FIELD (SLIST_ENTRY, Next))
 
#define EX_LOOKASIDE_LIST_EX_FLAGS_RAISE_ON_FAIL   0x00000001UL
 
#define EX_LOOKASIDE_LIST_EX_FLAGS_FAIL_NO_RAISE   0x00000002UL
 
#define EX_MAXIMUM_LOOKASIDE_DEPTH_BASE   256
 
#define EX_MAXIMUM_LOOKASIDE_DEPTH_LIMIT   1024
 
#define ResourceNeverExclusive   0x0010
 
#define ResourceReleaseByOtherThread   0x0020
 
#define ResourceOwnedExclusive   0x0080
 
#define RESOURCE_HASH_TABLE_SIZE   64
 
#define IF_NTOS_DEBUG(FlagName)   if(FALSE)
 
#define PROTECTED_POOL   0x80000000
 
#define INVALID_PROCESSOR_INDEX   0xffffffff
 
#define EX_PUSH_LOCK   ULONG_PTR
 
#define PEX_PUSH_LOCK   PULONG_PTR
 

Typedefs

typedef enum _SUITE_TYPE SUITE_TYPE
 
typedef enum _EX_POOL_PRIORITY EX_POOL_PRIORITY
 
typedef struct _LOOKASIDE_LIST_EXPLOOKASIDE_LIST_EX
 
typedef CALLBACK_FUNCTIONPCALLBACK_FUNCTION
 
typedef struct LOOKASIDE_ALIGN
_GENERAL_LOOKASIDE 
GENERAL_LOOKASIDE
 
typedef struct LOOKASIDE_ALIGN
_GENERAL_LOOKASIDE
PGENERAL_LOOKASIDE
 
typedef struct
_GENERAL_LOOKASIDE_POOL 
GENERAL_LOOKASIDE_POOL
 
typedef struct
_GENERAL_LOOKASIDE_POOL
PGENERAL_LOOKASIDE_POOL
 
typedef struct LOOKASIDE_ALIGN
_PAGED_LOOKASIDE_LIST 
PAGED_LOOKASIDE_LIST
 
typedef struct LOOKASIDE_ALIGN
_PAGED_LOOKASIDE_LIST
PPAGED_LOOKASIDE_LIST
 
typedef struct LOOKASIDE_ALIGN
_NPAGED_LOOKASIDE_LIST 
NPAGED_LOOKASIDE_LIST
 
typedef struct LOOKASIDE_ALIGN
_NPAGED_LOOKASIDE_LIST
PNPAGED_LOOKASIDE_LIST
 
typedef struct _LOOKASIDE_LIST_EX LOOKASIDE_LIST_EX
 
typedef struct _EX_RUNDOWN_REF EX_RUNDOWN_REF
 
typedef struct _EX_RUNDOWN_REFPEX_RUNDOWN_REF
 
typedef struct
_EX_RUNDOWN_REF_CACHE_AWARE
PEX_RUNDOWN_REF_CACHE_AWARE
 
typedef enum _WORK_QUEUE_TYPE WORK_QUEUE_TYPE
 
typedef WORKER_THREAD_ROUTINE * PWORKER_THREAD_ROUTINE
 
typedef struct _WORK_QUEUE_ITEM WORK_QUEUE_ITEM
 
typedef struct _WORK_QUEUE_ITEMPWORK_QUEUE_ITEM
 
typedef ULONG_PTR ERESOURCE_THREAD
 
typedef ULONG_PTRPERESOURCE_THREAD
 
typedef struct _OWNER_ENTRY OWNER_ENTRY
 
typedef struct _OWNER_ENTRYPOWNER_ENTRY
 
typedef struct _ERESOURCE ERESOURCE
 
typedef struct _ERESOURCEPERESOURCE
 
typedef struct _RESOURCE_HASH_ENTRY RESOURCE_HASH_ENTRY
 
typedef struct
_RESOURCE_HASH_ENTRY
PRESOURCE_HASH_ENTRY
 
typedef struct
_RESOURCE_PERFORMANCE_DATA 
RESOURCE_PERFORMANCE_DATA
 
typedef struct
_RESOURCE_PERFORMANCE_DATA
PRESOURCE_PERFORMANCE_DATA
 
typedef struct _ZONE_HEADER ZONE_HEADER
 
typedef struct _ZONE_HEADERPZONE_HEADER
 

Enumerations

enum  _SUITE_TYPE {
  SmallBusiness, Enterprise, BackOffice, CommunicationServer,
  TerminalServer, SmallBusinessRestricted, EmbeddedNT, DataCenter,
  SingleUserTS, Personal, Blade, EmbeddedRestricted,
  SecurityAppliance, StorageServer, ComputeServer, WHServer,
  MaxSuiteType
}
 
enum  _EX_POOL_PRIORITY {
  LowPoolPriority, LowPoolPrioritySpecialPoolOverrun = 8, LowPoolPrioritySpecialPoolUnderrun = 9, NormalPoolPriority = 16,
  NormalPoolPrioritySpecialPoolOverrun = 24, NormalPoolPrioritySpecialPoolUnderrun = 25, HighPoolPriority = 32, HighPoolPrioritySpecialPoolOverrun = 40,
  HighPoolPrioritySpecialPoolUnderrun = 41
}
 
enum  _WORK_QUEUE_TYPE { CriticalWorkQueue, DelayedWorkQueue, HyperCriticalWorkQueue, MaximumWorkQueue }
 

Functions

 $if (_WDMDDK_||_NTDDK_)$endif(_WDMDDK_||_NTDDK_) $if(_WDMDDK_) typedef struct _FAST_MUTEX
 
_IRQL_requires_same_ _Function_class_ (ALLOCATE_FUNCTION) typedef PVOID(NTAPI *PALLOCATE_FUNCTION)(_In_ POOL_TYPE PoolType
 
_IRQL_requires_same_ _Function_class_ (ALLOCATE_FUNCTION_EX) typedef PVOID(NTAPI *PALLOCATE_FUNCTION_EX)(_In_ POOL_TYPE PoolType
 
_IRQL_requires_same_ _Function_class_ (FREE_FUNCTION) typedef VOID(NTAPI *PFREE_FUNCTION)(_In_ PVOID Buffer)
 
_IRQL_requires_same_ _Function_class_ (FREE_FUNCTION_EX) typedef VOID(NTAPI *PFREE_FUNCTION_EX)(_In_ PVOID Buffer
 
_IRQL_requires_same_ _Function_class_ (CALLBACK_FUNCTION) typedef VOID(NTAPI CALLBACK_FUNCTION)(_In_opt_ PVOID CallbackContext
 
 LOOKASIDE_CHECK (TotalFrees)
 
 LOOKASIDE_CHECK (Tag)
 
 LOOKASIDE_CHECK (Future)
 
_IRQL_requires_same_ _Function_class_ (WORKER_THREAD_ROUTINE) typedef VOID(NTAPI WORKER_THREAD_ROUTINE)(_In_ PVOID Parameter)
 
 $endif (_WDMDDK_) $if(_NTDDK_) typedef struct _ZONE_SEGMENT_HEADER
 

Variables

 FAST_MUTEX
 
PFAST_MUTEX
 
_IRQL_requires_same_ _In_ SIZE_T NumberOfBytes
 
_IRQL_requires_same_ _In_
SIZE_T _In_ ULONG 
Tag
 
_IRQL_requires_same_ _In_
SIZE_T _In_ ULONG _Inout_
PLOOKASIDE_LIST_EX 
Lookaside
 
_IRQL_requires_same_ _In_opt_ PVOID Argument1
 
_IRQL_requires_same_ _In_opt_
PVOID _In_opt_ PVOID 
Argument2
 
 ZONE_SEGMENT_HEADER
 
PZONE_SEGMENT_HEADER
 

Macro Definition Documentation

#define EX_LOOKASIDE_LIST_EX_FLAGS_FAIL_NO_RAISE   0x00000002UL

Definition at line 172 of file extypes.h.

#define EX_LOOKASIDE_LIST_EX_FLAGS_RAISE_ON_FAIL   0x00000001UL

Definition at line 171 of file extypes.h.

#define EX_MAXIMUM_LOOKASIDE_DEPTH_BASE   256

Definition at line 174 of file extypes.h.

#define EX_MAXIMUM_LOOKASIDE_DEPTH_LIMIT   1024

Definition at line 175 of file extypes.h.

#define EX_RUNDOWN_COUNT_SHIFT   0x1
#define GENERAL_LOOKASIDE_LAYOUT

Definition at line 98 of file extypes.h.

#define IF_NTOS_DEBUG (   FlagName)    if(FALSE)

Definition at line 277 of file extypes.h.

#define INVALID_PROCESSOR_INDEX   0xffffffff
#define LOOKASIDE_ALIGN   DECLSPEC_CACHEALIGN

Definition at line 54 of file extypes.h.

Definition at line 142 of file extypes.h.

#define LOOKASIDE_MINIMUM_BLOCK_SIZE   (RTL_SIZEOF_THROUGH_FIELD (SLIST_ENTRY, Next))

Definition at line 163 of file extypes.h.

#define PROTECTED_POOL   0x80000000

Definition at line 294 of file extypes.h.

Referenced by ExFreePoolWithTag(), ExpInsertPoolTracker(), and ExpRemovePoolTracker().

#define RESOURCE_HASH_TABLE_SIZE   64

Definition at line 249 of file extypes.h.

#define ResourceNeverExclusive   0x0010
#define ResourceOwnedExclusive   0x0080

Definition at line 247 of file extypes.h.

#define ResourceReleaseByOtherThread   0x0020

Definition at line 246 of file extypes.h.

Typedef Documentation

Definition at line 208 of file extypes.h.

Definition at line 96 of file extypes.h.

Definition at line 208 of file extypes.h.

Definition at line 57 of file extypes.h.

typedef WORKER_THREAD_ROUTINE* PWORKER_THREAD_ROUTINE

Definition at line 200 of file extypes.h.

Enumeration Type Documentation

Enumerator
LowPoolPriority 
LowPoolPrioritySpecialPoolOverrun 
LowPoolPrioritySpecialPoolUnderrun 
NormalPoolPriority 
NormalPoolPrioritySpecialPoolOverrun 
NormalPoolPrioritySpecialPoolUnderrun 
HighPoolPriority 
HighPoolPrioritySpecialPoolOverrun 
HighPoolPrioritySpecialPoolUnderrun 

Definition at line 39 of file extypes.h.

Enumerator
SmallBusiness 
Enterprise 
BackOffice 
CommunicationServer 
TerminalServer 
SmallBusinessRestricted 
EmbeddedNT 
DataCenter 
SingleUserTS 
Personal 
Blade 
EmbeddedRestricted 
SecurityAppliance 
StorageServer 
ComputeServer 
WHServer 
MaxSuiteType 

Definition at line 19 of file extypes.h.

Enumerator
CriticalWorkQueue 
DelayedWorkQueue 
HyperCriticalWorkQueue 
MaximumWorkQueue 

Definition at line 188 of file extypes.h.

Function Documentation

$endif ( _WDMDDK_  )

Definition at line 280 of file extypes.h.

282  {
283  SINGLE_LIST_ENTRY SegmentList;
284  PVOID Reserved;
DWORD *typedef PVOID
Definition: winlogon.h:52
ZONE_SEGMENT_HEADER
Definition: extypes.h:285
Definition: ntbasedef.h:627
ULONG PVOID Reserved
Definition: ntimage.h:533
* PZONE_SEGMENT_HEADER
Definition: extypes.h:285
$if ( _WDMDDK_||  _NTDDK_)

Definition at line 1 of file extypes.h.

11  {
12  volatile LONG Count;
14  ULONG Contention;
15  KEVENT Event;
16  ULONG OldIrql;
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
ACPI_EFI_EVENT Event
Definition: acefiex.h:633
long LONG
Definition: pedump.c:60
FAST_MUTEX
Definition: extypes.h:17
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _In_ _IRQL_restores_ KIRQL OldIrql
Definition: kefuncs.h:803
* PFAST_MUTEX
Definition: extypes.h:17
_Out_writes_bytes_to_opt_ AbsoluteSecurityDescriptorSize PSECURITY_DESCRIPTOR _Inout_ PULONG _Out_writes_bytes_to_opt_ DaclSize PACL _Inout_ PULONG _Out_writes_bytes_to_opt_ SaclSize PACL _Inout_ PULONG _Out_writes_bytes_to_opt_ OwnerSize PSID Owner
Definition: rtlfuncs.h:1557
unsigned int ULONG
Definition: retypes.h:1
_IRQL_requires_same_ _Function_class_ ( ALLOCATE_FUNCTION  )
_IRQL_requires_same_ _Function_class_ ( ALLOCATE_FUNCTION_EX  )
_IRQL_requires_same_ _Function_class_ ( FREE_FUNCTION  )
_IRQL_requires_same_ _Function_class_ ( FREE_FUNCTION_EX  )
_IRQL_requires_same_ _Function_class_ ( CALLBACK_FUNCTION  )
_IRQL_requires_same_ _Function_class_ ( WORKER_THREAD_ROUTINE  )

Definition at line 988 of file registry.c.

990  {
991 #else
992 static void registry_work_item(PVOID Parameter) {
993 #endif
995  HANDLE regh = (HANDLE)Parameter;
997 
998  TRACE("registry changed\n");
999 
1001 
1002  Status = ZwNotifyChangeKey(regh, NULL, (PVOID)&wqi, (PVOID)DelayedWorkQueue, &iosb, REG_NOTIFY_CHANGE_LAST_SET, TRUE, NULL, 0, TRUE);
1003  if (!NT_SUCCESS(Status))
1004  ERR("ZwNotifyChangeKey returned %08x\n", Status);
1005 }
DWORD *typedef PVOID
Definition: winlogon.h:52
#define TRUE
Definition: types.h:120
WORK_QUEUE_ITEM wqi
Definition: registry.c:31
_In_ PVOID Parameter
Definition: ldrtypes.h:239
smooth NULL
Definition: ftsmooth.c:557
#define REG_NOTIFY_CHANGE_LAST_SET
Definition: winreg.h:40
#define TRACE(s)
Definition: solgame.cpp:4
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:24
static PIO_STATUS_BLOCK iosb
Definition: file.c:95
UNICODE_STRING registry_path
Definition: btrfs.c:83
Status
Definition: gdiplustypes.h:24
#define ERR(fmt,...)
Definition: debug.h:109
DWORD *typedef HANDLE
Definition: winlogon.h:52
LONG NTSTATUS
Definition: DriverTester.h:11
void read_registry(PUNICODE_STRING regpath, BOOL refresh)
Definition: registry.c:753
LOOKASIDE_CHECK ( TotalFrees  )
LOOKASIDE_CHECK ( Tag  )
LOOKASIDE_CHECK ( Future  )

Variable Documentation

Definition at line 94 of file extypes.h.

Definition at line 94 of file extypes.h.

FAST_MUTEX

Definition at line 17 of file extypes.h.

Referenced by AcpiOsCreateMutex(), InitFontSupport(), InitTimerImpl(), and START_TEST().

Definition at line 72 of file extypes.h.

* PZONE_SEGMENT_HEADER

Definition at line 285 of file extypes.h.

Referenced by ExExtendZone(), and ExInitializeZone().

Definition at line 64 of file extypes.h.

ZONE_SEGMENT_HEADER

Definition at line 285 of file extypes.h.

Referenced by ExExtendZone(), ExInitializeZone(), and UDFInitializeZones().