|
dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
|
virtual DriverKit memory description More...
#include <dxd_memory.h>
Public Types | |
| enum | direction : uint64_t { in = ::kIOMemoryDirectionIn , out = ::kIOMemoryDirectionOut , both = ::kIOMemoryDirectionIn| ::kIOMemoryDirectionOut } |
| direction of memory operation More... | |
Public Member Functions | |
| ::IOMemoryDescriptor* | copy() |
| the descriptor with a reference for the caller, as IOUserClient::CopyClientMemoryForType hands it on | |
| void | free() |
| DriverKit memory free. | |
| void | free() |
| void | free() |
| void | free() |
| os_result | initialize(::IOMemoryDescriptor* io_memory_descriptor) |
| DriverKit memory initializer. | |
| os_result | initialize(::IOMemoryDescriptor* io_memory_descriptor, size_t offset, size_t size, directiondirection directiondirection) |
| DriverKit memory initializer. | |
| os_result | initialize(const ::MDL* mdl) |
| os_result | initialize(const ::MDL* mdl, size_t offset, size_t size) |
| a part of a locked MDL's pages, whatever allocated them: a partial MDL, its system mapping IoFreeMdl()'s | |
| os_result | initialize(const void* data, size_t size) |
| os_result | initialize(const void* data, size_t size) |
| os_result | initialize(const void* data, size_t size) |
| memory()= default | |
| DriverKit default constructor. | |
| memory()= default | |
| memory(const ::MDL* mdl) | |
| memory(const memory& memory) | |
| memory(const void* data, size_t size) | |
| WDK memory constructor. | |
| operator const ::IOMemoryDescriptor*() const | |
| DriverKit IOMemoryDescriptor* implicit cast. | |
| operator ::IOMemoryDescriptor*() | |
| operator ::MDL*() const | |
| uint64_t | size() const |
| DriverKit memory size. | |
| ~memory() | |
| DriverKit memory destructor. | |
| virtual | ~memory() |
| WDK: memory destructor. | |
Public Attributes | |
| os_result | status{not_initialized} |
| DriverKit memory status. | |
Protected Attributes | |
| ::MDL* | mdl{} |
virtual DriverKit memory description
WDK: virtual kernel memory description.
The dxd::memory is the DriverKit memory representation of the DriverKit virtual memory description. It is an internally used wrapper to generate virtual DriverKit memory representation from a platform independent pointer:size description.
The dxd::memory is a kernel memory representation of the kernels virtual memory description. It is an internally used wrapper to generate a virtual kernel memory representation from a platform independent pointer:size description.
| enum dxd::memory::direction : uint64_t |
|
default |
DriverKit default constructor.
Use this in conjunction with initialize()
|
inline |
|
inline |
DriverKit memory destructor.
|
default |
|
inline |
WDK memory constructor.
| data | source data pointer |
| size | source data size |
|
inline |
| mdl | source MDL |
|
inlinevirtual |
WDK: memory destructor.
|
inline |
the descriptor with a reference for the caller, as IOUserClient::CopyClientMemoryForType hands it on
|
inline |
DriverKit memory free.
Checks the underlaying OS memory descriptor,
synchronizes and unwires it from memory and
releases the memory descriptor.
|
inline |
|
inline |
| void dxd::memory<scope_t, io_memory_descriptor_t>::free() |
|
inline |
DriverKit memory initializer.
|
inline |
DriverKit memory initializer.
|
inline |
in contrast to an IOKit MemoryDescriptor MDLs do not support reference counting. take care when creating a dxd::memory from a dxd::buffer: although the dxd::memory holds an MDL to the buffer the buffer itself is not retained after the dxd::buffer is released!
|
inline |
a part of a locked MDL's pages, whatever allocated them: a partial MDL, its system mapping IoFreeMdl()'s
|
inline |
Allows re-initialization
| data | virtual read only user base address of range to create memory descriptor from |
| size | size of range to create memory descriptor from |
|
inline |
Allows re-initialization
| data | virtual read only kernel base address of range to create memory descriptor from |
| size | size of range to create memory descriptor from |
| os_result dxd::memory<scope_t, io_memory_descriptor_t>::initialize(const void* data, size_t size) |
|
inline |
DriverKit IOMemoryDescriptor* implicit cast.
|
inline |
|
inline |
|
inline |
DriverKit memory size.
|
protected |
| os_result dxd::memory<scope_t, io_memory_descriptor_t>::status{not_initialized} |
DriverKit memory status.
status of memory object