From 24af17846d14b290aa1d90e37e98c4cbe9e173e1 Mon Sep 17 00:00:00 2001 From: pravic Date: Tue, 12 Apr 2016 18:12:52 +0300 Subject: add winapi-km-rs docs --- doc/src/km/object.rs.html | 196 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 196 insertions(+) create mode 100644 doc/src/km/object.rs.html (limited to 'doc/src/km/object.rs.html') diff --git a/doc/src/km/object.rs.html b/doc/src/km/object.rs.html new file mode 100644 index 0000000..39f127f --- /dev/null +++ b/doc/src/km/object.rs.html @@ -0,0 +1,196 @@ + + + + + + + + + + object.rs.html -- source + + + + + + + + + + + + + + + + + +
 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+
+//! Kernel Objects.
+
+use ::basedef::*;
+use ::device_object::PDEVICE_OBJECT;
+use ::irp::IRP;
+
+
+#[repr(C)]
+pub struct WAIT_CONTEXT_BLOCK
+{
+	WaitQueueEntry: *mut KDEVICE_QUEUE_ENTRY,
+	DeviceRoutine: extern "system" fn (_obj: PDEVICE_OBJECT, _irp: *mut IRP, *mut u8, *mut u8) -> IO_ALLOCATION_ACTION,
+	DeviceContext: *mut u8,
+	NumberOfMapRegisters: u32,
+	DeviceObject: *mut u8,
+	CurrentIrp: *mut u8,
+	BufferChainingDpc: * mut u8,
+}
+
+#[repr(C)]
+pub enum IO_ALLOCATION_ACTION
+{
+	KeepObject = 0x01,
+	DeallocateObject = 0x02,
+	DeallocateObjectKeepRegisters = 0x03,
+}
+
+#[repr(C)]
+pub struct KDEVICE_QUEUE_ENTRY
+{
+	DeviceListEntry: LIST_ENTRY,
+	SortKey: u32,
+	Inserted: bool,
+}
+
+#[repr(C)]
+pub struct KDEVICE_QUEUE
+{
+	Type: u16,
+	Size: u16,
+	DeviceListHead: LIST_ENTRY,
+	Lock: KSPIN_LOCK,
+	Busy: bool,
+}
+
+
+ + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3