mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 14:37:45 +00:00
Add InitializeSListHead and QueryDepthSList to winbase.h
Remove QueryDepthSList from winddk.h Fix definion of ExQueryDepthSList in winddk.h svn path=/trunk/; revision=39467
This commit is contained in:
parent
5e8a4f674a
commit
9f5a99cfcf
|
@ -6510,14 +6510,6 @@ InterlockedPushEntrySList(
|
|||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* USHORT
|
||||
* QueryDepthSList(
|
||||
* IN PSLIST_HEADER SListHead)
|
||||
*/
|
||||
#define QueryDepthSList(_SListHead) \
|
||||
((USHORT) ((_SListHead)->Alignment & 0xffff))
|
||||
|
||||
#define InterlockedFlushSList(ListHead) ExInterlockedFlushSList(ListHead)
|
||||
|
||||
NTSYSAPI
|
||||
|
@ -7621,7 +7613,22 @@ ExFreePoolWithTag(
|
|||
IN PVOID P,
|
||||
IN ULONG Tag);
|
||||
|
||||
#define ExQueryDepthSList(ListHead) QueryDepthSList(ListHead)
|
||||
#if defined (_WIN64)
|
||||
#if defined(_NTDRIVER_) || defined(_NTDDK) || defined(_NTIFS_) || defined(_NTHAL_) || defined(_NTOSP_)
|
||||
NTKRNLAPI
|
||||
USHORT
|
||||
ExQueryDepthSList(IN PSLIST_HEADER Listhead);
|
||||
#else
|
||||
FORCEINLINE
|
||||
USHORT
|
||||
ExQueryDepthSList(IN PSLIST_HEADER Listhead)
|
||||
{
|
||||
return (USHORT)(ListHead->Alignment & 0xffff);
|
||||
}
|
||||
#endif
|
||||
#else
|
||||
#define ExQueryDepthSList(listhead) (listhead)->Depth
|
||||
#endif
|
||||
|
||||
static __inline VOID
|
||||
ExFreeToNPagedLookasideList(
|
||||
|
|
|
@ -1772,6 +1772,9 @@ PSLIST_ENTRY WINAPI InterlockedPushEntrySList(PSLIST_HEADER,PSLIST_ENTRY);
|
|||
|
||||
#endif // !(defined (_M_AMD64) || defined (_M_IA64))
|
||||
|
||||
VOID WINAPI InitializeSListHead(PSLIST_HEADER);
|
||||
USHORT WINAPI QueryDepthSList(PSLIST_HEADER);
|
||||
|
||||
#if !defined(InterlockedAnd)
|
||||
#define InterlockedAnd InterlockedAnd_Inline
|
||||
FORCEINLINE
|
||||
|
|
Loading…
Reference in a new issue