ReactOS 0.4.15-dev-8127-g6338913
fxlock.cpp
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation
4
5Module Name:
6
7 FxLock.cpp
8
9Abstract:
10
11 This module contains the implementation of FxLock
12
13Author:
14
15
16
17Environment:
18
19 Both kernel and user mode
20
21Revision History:
22
23
24--*/
25
26#include "coreprivshared.hpp"
27
28VOID
30 __in FxObject * ParentObject
31 )
32/*++
33
34Routine Description:
35 This is called to initialize the verifier with the object type so it can
36 track lock order and sequence.
37
38Arguments:
39 ParentObject - the owning object
40
41Return Value:
42 None
43
44 --*/
45{
47
48 pFxDriverGlobals = ParentObject->GetDriverGlobals();
49
51 //
52 // Allocation failure is not fatal, we just won't track anything
53 //
54
57 ParentObject);
58 }
59}
VOID Initialize(__in FxObject *ParentObject)
Definition: fxlock.cpp:29
FxVerifierLock * m_Verifier
Definition: fxlock.hpp:54
_Must_inspect_result_ static __inline NTSTATUS CreateAndInitialize(__out FxVerifierLock **VerifierLock, __in PFX_DRIVER_GLOBALS FxDriverGlobals, __in FxObject *ParentObject, __in BOOLEAN UseMutex)
#define __in
Definition: dbghelp.h:35
PFX_DRIVER_GLOBALS pFxDriverGlobals
BOOLEAN FxVerifierLock
Definition: fxglobals.h:451