ReactOS  0.4.15-dev-2700-g4b4ffa9
fxnpagedlookasidelist.hpp
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) Microsoft Corporation
4 
5 Module Name:
6 
7  FxNPagedLookasideList.hpp
8 
9 Abstract:
10 
11 Author:
12 
13 Environment:
14 
15  kernel mode only
16 
17 Revision History:
18 
19 --*/
20 
21 #ifndef _FXNPAGEDLOOKASIDELIST_H_
22 #define _FXNPAGEDLOOKASIDELIST_H_
23 
25 public:
27  __in PFX_DRIVER_GLOBALS FxDriverGlobals,
29  );
30 
31  virtual
33  NTSTATUS
34  Initialize(
35  __in size_t BufferSize,
37  );
38 
39  virtual
41  NTSTATUS
42  Allocate(
43  __out FxMemoryObject** PPMemory
44  );
45 
46 protected:
48 
49  virtual
50  VOID
51  Reclaim(
53  );
54 
55 protected:
57 };
58 
60 
62 
63 public:
65  __in PFX_DRIVER_GLOBALS FxDriverGlobals,
67  );
68 
69  virtual
71  NTSTATUS
72  Initialize(
73  __in size_t BufferSize,
75  );
76 
77  virtual
79  NTSTATUS
80  Allocate(
81  __out FxMemoryObject** PPMemory
82  );
83 
84 protected:
86  VOID
87  );
88 
89  virtual
90  VOID
91  Reclaim(
93  );
94 
95  virtual
96  VOID
99  )
100  {
102  }
103 
105 
107 };
108 
109 
110 #endif // __FX_NPAGED_LOOKASIDE_LIST_H__
#define _Must_inspect_result_
Definition: no_sal2.h:62
struct LOOKASIDE_ALIGN _NPAGED_LOOKASIDE_LIST NPAGED_LOOKASIDE_LIST
virtual _Must_inspect_result_ NTSTATUS Allocate(__out FxMemoryObject **PPMemory)
LONG NTSTATUS
Definition: precomp.h:26
virtual _Must_inspect_result_ NTSTATUS Initialize(__in size_t BufferSize, __in PWDF_OBJECT_ATTRIBUTES MemoryAttributes)
FxNPagedLookasideList(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in ULONG PoolTag)
virtual VOID Reclaim(__in FxMemoryBufferFromLookaside *Memory)
#define __out
Definition: dbghelp.h:62
virtual VOID ReclaimPool(__inout PVOID Pool)
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ _Strict_type_match_ POOL_TYPE _In_opt_ ULONG _In_ _Out_ WDFMEMORY * Memory
Definition: wdfmemory.h:169
NPAGED_LOOKASIDE_LIST m_ObjectLookaside
Definition: bufpool.h:50
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ _Strict_type_match_ POOL_TYPE _In_opt_ ULONG PoolTag
Definition: wdfmemory.h:159
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ _In_ _Strict_type_match_ POOL_TYPE _In_opt_ PWDF_OBJECT_ATTRIBUTES MemoryAttributes
Definition: wdfmemory.h:407
#define __inout
Definition: dbghelp.h:50
__inline VOID FxFreeToNPagedLookasideList(__in PNPAGED_LOOKASIDE_LIST Lookaside, __in PVOID Entry)
Definition: fxglobalskm.h:611
FxNPagedLookasideListFromPool(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in ULONG PoolTag)
virtual _Must_inspect_result_ NTSTATUS Allocate(__out FxMemoryObject **PPMemory)
unsigned int ULONG
Definition: retypes.h:1
virtual VOID Reclaim(__in FxMemoryBufferFromLookaside *Memory)
#define __in
Definition: dbghelp.h:35
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:251
virtual _Must_inspect_result_ NTSTATUS Initialize(__in size_t BufferSize, __in PWDF_OBJECT_ATTRIBUTES MemoryAttributes)