|
dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
|
DriverKit memory buffer: whole pages. More...
#include <dxd_memory.h>
Public Types | |
| enum | direction : uint64_t { in = ::kIOMemoryDirectionIn , out = ::kIOMemoryDirectionOut , both = ::kIOMemoryDirectionIn| ::kIOMemoryDirectionOut } |
| direction of memory operation More... | |
| enum | direction |
| direction of memory operation More... | |
Public Member Functions | |
| buffer()= default | |
| buffer()= default | |
| buffer(size_t size, unsigned int limit= limit_t) | |
| buffer(size_t size, unsigned int limit= limit_t) | |
| ::IOMemoryDescriptor* | copy() |
| the descriptor with a reference for the caller, as IOUserClient::CopyClientMemoryForType hands it on | |
| ::IOMemoryDescriptor* | copy() |
| the descriptor with a reference for the caller, as IOUserClient::CopyClientMemoryForType hands it on | |
| void | free() |
| os_result | initialize(size_t size, unsigned int limit= limit_t) |
| os_result | initialize(size_t size, unsigned int= limit_t) |
| 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(::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) |
| operator const ::IOMemoryDescriptor*() const | |
| DriverKit IOMemoryDescriptor* implicit cast. | |
| operator const ::IOMemoryDescriptor*() const | |
| DriverKit IOMemoryDescriptor* implicit cast. | |
| operator void*() const | |
| the allocation's kernel address | |
| operator ::IOMemoryDescriptor*() | |
| operator ::IOMemoryDescriptor*() | |
| operator ::MDL*() const | |
| operator ::MDL*() const | |
| uint64_t | size() const |
| DriverKit memory size. | |
| uint64_t | size() const |
| DriverKit memory size. | |
| ~buffer() override | |
Public Attributes | |
| os_result | status{not_initialized} |
| DriverKit memory status. | |
| os_result | status |
| DriverKit memory status. | |
Protected Attributes | |
| ::MDL* | mdl{} |
| ::MDL* | mdl |
DriverKit memory buffer: whole pages.
WDK buffer: whole pages below 1<< limit_t, zeroed, from initialize() to free().
The dxd::buffer is a DriverKit memory representation with an associated memory backing store allocation. The memory backing store is owned by this DriverKit memory representation and the reference will be released when this object is destroyed; the limit is the device mapping's (IODMACommand), DriverKit allocates the pages.
The pages are the MDL's own (MmAllocatePagesForMdlEx) and mapped to system space: no other allocation shares a page a client maps or a device reaches, and no run of them needs to be contiguous.
|
inherited |
|
inherited |
direction of memory operation
|
default |
|
inline |
|
default |
|
inline |
|
inlineoverride |
|
inlineinherited |
the descriptor with a reference for the caller, as IOUserClient::CopyClientMemoryForType hands it on
|
inlineinherited |
the descriptor with a reference for the caller, as IOUserClient::CopyClientMemoryForType hands it on
|
inline |
|
inline |
|
inline |
|
inlineinherited |
DriverKit memory initializer.
|
inlineinherited |
DriverKit memory initializer.
|
inlineinherited |
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!
|
inlineinherited |
a part of a locked MDL's pages, whatever allocated them: a partial MDL, its system mapping IoFreeMdl()'s
|
inherited |
|
inlineinherited |
DriverKit memory initializer.
|
inlineinherited |
DriverKit memory initializer.
|
inlineinherited |
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!
|
inlineinherited |
a part of a locked MDL's pages, whatever allocated them: a partial MDL, its system mapping IoFreeMdl()'s
|
inherited |
|
inlineinherited |
DriverKit IOMemoryDescriptor* implicit cast.
|
inlineinherited |
DriverKit IOMemoryDescriptor* implicit cast.
|
inline |
the allocation's kernel address
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
DriverKit memory size.
|
inlineinherited |
DriverKit memory size.
|
protectedinherited |
|
protectedinherited |
|
inherited |
DriverKit memory status.
status of memory object
|
inherited |
DriverKit memory status.
status of memory object