4cee65915a72bd7a2dfaa0910328f400dfcdc4fa
[reactos.git] / reactos / ntoskrnl / fs / pool.c
1 /* $Id$
2 *
3 * reactos/ntoskrnl/fs/pool.c
4 *
5 */
6
7 #include <ntoskrnl.h>
8
9
10 /**********************************************************************
11 * NAME EXPORTED
12 * FsRtlAllocatePool@8
13 *
14 * DESCRIPTION
15 *
16 * ARGUMENTS
17 *
18 * RETURN VALUE
19 *
20 * NOTE
21 * IFS_POOL_TAG is "FSrt" in mem view.
22 *
23 * @implemented
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 * @implemented
61 */
62 PVOID
63 STDCALL
64 FsRtlAllocatePoolWithQuota (
65 IN POOL_TYPE PoolType,
66 IN ULONG NumberOfBytes
67 )
68 {
69 PVOID Address;
70
71 Address = ExAllocatePoolWithQuotaTag (
72 PoolType,
73 NumberOfBytes,
74 IFS_POOL_TAG
75 );
76 if (NULL == Address)
77 {
78 ExRaiseStatus (STATUS_INSUFFICIENT_RESOURCES);
79 }
80 return Address;
81 }
82
83
84 /**********************************************************************
85 * NAME EXPORTED
86 * FsRtlAllocatePoolWithQuotaTag@12
87 *
88 * DESCRIPTION
89 *
90 * ARGUMENTS
91 *
92 * RETURN VALUE
93 *
94 * @implemented
95 */
96 PVOID
97 STDCALL
98 FsRtlAllocatePoolWithQuotaTag (
99 IN POOL_TYPE PoolType,
100 IN ULONG NumberOfBytes,
101 IN ULONG Tag
102 )
103 {
104 PVOID Address;
105
106 Address = ExAllocatePoolWithQuotaTag (
107 PoolType,
108 NumberOfBytes,
109 Tag
110 );
111 if (NULL == Address)
112 {
113 ExRaiseStatus (STATUS_INSUFFICIENT_RESOURCES);
114 }
115 return Address;
116 }
117
118
119 /**********************************************************************
120 * NAME EXPORTED
121 * FsRtlAllocatePoolWithTag@12
122 *
123 * DESCRIPTION
124 *
125 * ARGUMENTS
126 *
127 * RETURN VALUE
128 *
129 * @implemented
130 */
131 PVOID
132 STDCALL
133 FsRtlAllocatePoolWithTag (
134 IN POOL_TYPE PoolType,
135 IN ULONG NumberOfBytes,
136 IN ULONG Tag
137 )
138 {
139 PVOID Address;
140
141 Address = ExAllocatePoolWithTag (
142 PoolType,
143 NumberOfBytes,
144 Tag
145 );
146 if (NULL == Address)
147 {
148 ExRaiseStatus (STATUS_INSUFFICIENT_RESOURCES);
149 }
150 return Address;
151 }
152
153
154
155 /* EOF */