ReactOS  0.4.15-dev-3456-g4a17d4b
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 
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
UCHAR KIRQL
Definition: env_spec_w32.h:591
KIRQL KernelIrql
Definition: mocklock.c:12
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFSPINLOCK * SpinLock
Definition: wdfsync.h:225
VOID TcpipAcquireFastMutex(PFAST_MUTEX Mutex)
Definition: mocklock.c:43
#define ASSERT(a)
Definition: mode.c:44
KIRQL * PKIRQL
Definition: env_spec_w32.h:592
Definition: typedefs.h:119
#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
_In_ WDFCOLLECTION _In_ WDFOBJECT Item
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWAITLOCK * Lock
Definition: wdfsync.h:124
VOID TcpipReleaseSpinLock(PKSPIN_LOCK SpinLock, KIRQL Irql)
Definition: mocklock.c:28