aboutsummaryrefslogtreecommitdiff
path: root/src/alloc/pool.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc/pool.rs')
-rw-r--r--src/alloc/pool.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/alloc/pool.rs b/src/alloc/pool.rs
new file mode 100644
index 0000000..5b120ac
--- /dev/null
+++ b/src/alloc/pool.rs
@@ -0,0 +1,13 @@
+#[repr(C)]
+pub enum POOL_TYPE
+{
+ PagedPool,
+}
+
+pub type PVOID = *mut u8;
+
+extern "system"
+{
+ pub fn ExAllocatePoolWithTag(PoolType: POOL_TYPE, NumberOfBytes: usize, Tag: u32) -> PVOID;
+ pub fn ExFreePoolWithTag(P: PVOID, Tag: u32);
+}