48149e97c3ce3aae8c6c112d62b9bd8d8c93383b
[reactos.git] / reactos / ntoskrnl / fs / pool.c
1 /* $Id: pool.c,v 1.1 2000/03/01 22:52:27 ea Exp $
2 *
3 * reactos/ntoskrnl/fs/pool.c
4 *
5 */
6 #include <ntos.h>
7 #include <ddk/fsfuncs.h>
8 #include <internal/ifs.h>
9
10
11 /**********************************************************************
12 * NAME EXPORTED
13 * FsRtlAllocatePool@8
14 *
15 * DESCRIPTION
16 *
17 * ARGUMENTS
18 *
19 * RETURN VALUE
20 *
21 * NOTE
22 * IFS_POOL_TAG is "FSrt" in mem view.
23 *
24 */
25 PVOID
26 STDCALL
27 FsRtlAllocatePool (
28 IN POOL_TYPE PoolType,
29 IN ULONG NumberOfBytes
30 )
31 {
32 PVOID Address;
33
34 Address = ExAllocatePoolWithTag (
35 PoolType,
36 NumberOfBytes,
37 IFS_POOL_TAG
38 );
39 if (NULL == Address)
40 {
41 ExRaiseStatus (STATUS_INSUFFICIENT_RESOURCES);
42 }
43 return Address;
44 }
45
46
47 /**********************************************************************
48 * NAME EXPORTED
49 * FsRtlAllocatePoolWithQuota@8
50 *
51 * DESCRIPTION
52 *
53 * ARGUMENTS
54 *
55 * RETURN VALUE
56 *
57 * NOTE
58 * IFS_POOL_TAG is "FSrt" in mem view.
59 */
60 PVOID
61 STDCALL
62 FsRtlAllocatePoolWithQuota (
63 IN POOL_TYPE PoolType,
64 IN ULONG NumberOfBytes
65 )
66 {
67 PVOID Address;
68
69 Address = ExAllocatePoolWithQuotaTag (
70 PoolType,
71 NumberOfBytes,
72 IFS_POOL_TAG
73 );
74 if (NULL == Address)
75 {
76 ExRaiseStatus (STATUS_INSUFFICIENT_RESOURCES);
77 }
78 return Address;
79 }
80
81
82 /**********************************************************************
83 * NAME EXPORTED
84 * FsRtlAllocatePoolWithQuotaTag@12
85 *
86 * DESCRIPTION
87 *
88 * ARGUMENTS
89 *
90 * RETURN VALUE
91 *
92 */
93 PVOID
94 STDCALL
95 FsRtlAllocatePoolWithQuotaTag (
96 IN POOL_TYPE PoolType,
97 IN ULONG NumberOfBytes,
98 IN ULONG Tag
99 )
100 {
101 PVOID Address;
102
103 Address = ExAllocatePoolWithQuotaTag (
104 PoolType,
105 NumberOfBytes,
106 Tag
107 );
108 if (NULL == Address)
109 {
110 ExRaiseStatus (STATUS_INSUFFICIENT_RESOURCES);
111 }
112 return Address;
113 }
114
115
116 /**********************************************************************
117 * NAME EXPORTED
118 * FsRtlAllocatePoolWithTag@12
119 *
120 * DESCRIPTION
121 *
122 * ARGUMENTS
123 *
124 * RETURN VALUE
125 *
126 */
127 PVOID
128 STDCALL
129 FsRtlAllocatePoolWithTag (
130 IN POOL_TYPE PoolType,
131 IN ULONG NumberOfBytes,
132 IN ULONG Tag
133 )
134 {
135 PVOID Address;
136
137 Address = ExAllocatePoolWithTag (
138 PoolType,
139 NumberOfBytes,
140 Tag
141 );
142 if (NULL == Address)
143 {
144 ExRaiseStatus (STATUS_INSUFFICIENT_RESOURCES);
145 }
146 return Address;
147 }
148
149
150
151 /* EOF */