mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 07:23:15 +00:00
- Move more stuff to wdm.h
- Fix/Improve InitializeSListHead - Convert some macros into inline functions svn path=/branches/header-work/; revision=45786
This commit is contained in:
parent
7c79de7f48
commit
f9ac88867c
2 changed files with 99 additions and 57 deletions
|
@ -2396,23 +2396,6 @@ RtlWalkFrameChain(
|
|||
IN ULONG Count,
|
||||
IN ULONG Flags);
|
||||
|
||||
/* Fast Mutex */
|
||||
#define ExInitializeFastMutex(_FastMutex) \
|
||||
{ \
|
||||
(_FastMutex)->Count = FM_LOCK_BIT; \
|
||||
(_FastMutex)->Owner = NULL; \
|
||||
(_FastMutex)->Contention = 0; \
|
||||
KeInitializeEvent(&(_FastMutex)->Gate, SynchronizationEvent, FALSE); \
|
||||
}
|
||||
|
||||
NTKERNELAPI
|
||||
VOID
|
||||
NTAPI
|
||||
KeInitializeEvent(
|
||||
IN PRKEVENT Event,
|
||||
IN EVENT_TYPE Type,
|
||||
IN BOOLEAN State);
|
||||
|
||||
/******************************************************************************
|
||||
* Executive Types *
|
||||
******************************************************************************/
|
||||
|
@ -2498,16 +2481,6 @@ ExInterlockedExtendZone(
|
|||
#define ExInterlockedFreeToZone(Zone, Block, Lock) \
|
||||
ExInterlockedPushEntryList(&(Zone)->FreeList, (PSINGLE_LIST_ENTRY)(Block), Lock)
|
||||
|
||||
/*
|
||||
* VOID
|
||||
* InitializeSListHead(
|
||||
* IN PSLIST_HEADER SListHead)
|
||||
*/
|
||||
#define InitializeSListHead(_SListHead) \
|
||||
(_SListHead)->Alignment = 0
|
||||
|
||||
#define ExInitializeSListHead InitializeSListHead
|
||||
|
||||
/*
|
||||
* BOOLEAN
|
||||
* ExIsFullZone(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue