ReactOS  0.4.14-dev-337-gf981a68
mocklock.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS TCP/IP protocol driver
4  * FILE: tcpip/lock.c
5  * PURPOSE: Locking and unlocking
6  * PROGRAMMERS: Art Yerkes
7  * REVISIONS:
8  */
9 
10 #include "precomp.h"
11 
13 
15 
17 }
18 
20  *Irql = KernelIrql;
22 }
23 
26 }
27 
29  ASSERT( Irql <= KernelIrql );
30  KernelIrql = Irql;
31 }
32 
35 }
36 
38  PLIST_ENTRY Item,
39  PKSPIN_LOCK Lock ) {
40  InsertTailList( ListHead, Item );
41 }
42 
44 }
45 
47 }
VOID TcpipInitializeSpinLock(PKSPIN_LOCK SpinLock)
Definition: mocklock.c:16
VOID TcpipInterlockedInsertTailList(PLIST_ENTRY ListHead, PLIST_ENTRY Item, PKSPIN_LOCK Lock)
Definition: mocklock.c:37
VOID TcpipReleaseFastMutex(PFAST_MUTEX Mutex)
Definition: mocklock.c:46
VOID TcpipReleaseSpinLockFromDpcLevel(PKSPIN_LOCK SpinLock)
Definition: mocklock.c:33
KSPIN_LOCK * PKSPIN_LOCK
Definition: env_spec_w32.h:73
#define InsertTailList(ListHead, Entry)
_Out_ PKIRQL Irql
Definition: csq.h:179
Definition: Mutex.h:15
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK SpinLock
Definition: iofuncs.h:798
UCHAR KIRQL
Definition: env_spec_w32.h:591
KIRQL KernelIrql
Definition: mocklock.c:12
VOID TcpipAcquireFastMutex(PFAST_MUTEX Mutex)
Definition: mocklock.c:43
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel) ?(CompletionRoutine !=NULL) :TRUE)
KIRQL * PKIRQL
Definition: env_spec_w32.h:592
Definition: typedefs.h:117
IN OUT PLONG IN OUT PLONG Addend IN OUT PLONG IN LONG IN OUT PLONG IN LONG Increment IN PNDIS_RW_LOCK Lock
Definition: CrNtStubs.h:75
#define PASSIVE_LEVEL
Definition: env_spec_w32.h:693
VOID TcpipAcquireSpinLockAtDpcLevel(PKSPIN_LOCK SpinLock)
Definition: mocklock.c:24
#define DISPATCH_LEVEL
Definition: env_spec_w32.h:696
* PFAST_MUTEX
Definition: extypes.h:17
KIRQL TcpipGetCurrentIrql()
Definition: mocklock.c:14
VOID TcpipAcquireSpinLock(PKSPIN_LOCK SpinLock, PKIRQL Irql)
Definition: mocklock.c:19
VOID TcpipReleaseSpinLock(PKSPIN_LOCK SpinLock, KIRQL Irql)
Definition: mocklock.c:28