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