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