dxd - dynax driver framework 2.1.0d73
cross platform open source driver development framework
|
virtual kernel memory description More...
#include <dxd_memory.h>
Public Member Functions | |
void | free () |
IOKit memory free. | |
void | free () |
void | free () |
void | free () |
os_result | initialize (::IOMemoryDescriptor *iokit_memory_descriptor) |
IOKit memory initializer. | |
os_result | initialize (::IOMemoryDescriptor *iokit_memory_descriptor, size_t offset, size_t size) |
IOKit memory initializer. | |
os_result | initialize (const void *data, size_t size) |
IOKit memory initializer. | |
os_result | initialize (const void *data, size_t size) |
IOKit memory initializer from kernel virtual addresses. | |
os_result | initialize (const void *data, size_t size) |
IOKit memory initializer from user space virtual addresses. | |
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) |
os_result | initialize (const::MDL *mdl) |
os_result | initialize (const::MDL *mdl, size_t offset, size_t size) |
os_result | initialize (void *data, size_t size) |
IOKit memory initializer. | |
os_result | initialize (void *data, size_t size) |
IOKit memory initializer from kernel virtual addresses. | |
os_result | initialize (void *data, size_t size) |
IOKit memory initializer from user space virtual addresses. | |
memory ()=default | |
IOKit default constructor. | |
memory ()=default | |
memory (const void *data, size_t size) | |
IOKit class constructor. | |
memory (const void *data, size_t size) | |
WDK memory constructor. | |
memory (const::MDL *mdl) | |
operator const::IOMemoryDescriptor * () const | |
IOKit IOMemoryDescriptor* implicit cast. | |
operator uint64_t () const | |
IOKit physical address (only relevant for contigous memory) | |
operator::IOMemoryDescriptor * () | |
operator::MDL * () const | |
size_t | size () const |
IOKit memory size. | |
~memory () | |
IOKit memory destructor. | |
virtual | ~memory () |
WDK: memory destructor. | |
Public Attributes | |
os_result | status =not_initialized |
IOKit memory status. | |
virtual kernel memory description
WDK: virtual kernel memory 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.
|
default |
IOKit default constructor.
Use this in conjunction with initialize()
|
inline |
IOKit class constructor.
Calls initialize() member.
data | virtual base address of range to create memory descriptor from |
size | size of range to create memory descriptor from |
|
inline |
|
default |
|
inline |
WDK memory constructor.
data | source data pointer |
size | source data size |
|
inline |
mdl | source MDL |
|
inlinevirtual |
WDK: memory destructor.
|
inline |
IOKit memory free.
Checks the underlaying OS memory descriptor,
synchronizes and unwires it from memory and
releases the memory descriptor.
void dxd::memory< scope_t >::free | ( | ) |
void dxd::memory< dx::kernel >::free | ( | ) |
void dxd::memory< dx::user >::free | ( | ) |
|
inline |
IOKit memory initializer.
|
inline |
IOKit memory initializer.
os_result dxd::memory< scope_t >::initialize | ( | const void * | data, |
size_t | size ) |
IOKit memory initializer.
data | virtual base address of range to create memory descriptor from |
size | size of range to create memory descriptor from |
os_result dxd::memory< dx::kernel >::initialize | ( | const void * | data, |
size_t | size ) |
IOKit memory initializer from kernel virtual addresses.
Allows re-initialization.
Creates OS memory descriptor from kernel space data,size and
wires it down and synchronizes it.
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< dx::user >::initialize | ( | const void * | data, |
size_t | size ) |
IOKit memory initializer from user space virtual addresses.
Allows re-initialization.
Creates OS memory descriptor from user space data,size and
wires it down and syschronizes it.
data | virtual read only user space base address of range to create memory descriptor from |
size | size of range to create memory descriptor from |
os_result dxd::memory< scope_t >::initialize | ( | const void * | data, |
size_t | size ) |
os_result dxd::memory< dx::kernel >::initialize | ( | const void * | data, |
size_t | size ) |
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< dx::user >::initialize | ( | const void * | data, |
size_t | size ) |
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 |
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 |
os_result dxd::memory< scope_t >::initialize | ( | void * | data, |
size_t | size ) |
IOKit memory initializer.
data | virtual base address of range to create memory descriptor from |
size | size of range to create memory descriptor from |
os_result dxd::memory< dx::kernel >::initialize | ( | void * | data, |
size_t | size ) |
IOKit memory initializer from kernel virtual addresses.
Allows re-initialization.
Creates OS memory descriptor from kernel space data,size and
wires it down and synchronizes it.
data | virtual kernel base address of range to create memory descriptor from |
size | size of range to create memory descriptor from |
os_result dxd::memory< dx::user >::initialize | ( | void * | data, |
size_t | size ) |
IOKit memory initializer from user space virtual addresses.
Allows re-initialization.
Creates OS memory descriptor from user space data,size and
wires it down and syschronizes it.
data | virtual user space base address of range to create memory descriptor from |
size | size of range to create memory descriptor from |
|
inline |
IOKit IOMemoryDescriptor* implicit cast.
|
inline |
IOKit physical address (only relevant for contigous memory)
|
inline |
|
inline |
|
inline |
IOKit memory size.
os_result dxd::memory< scope_t >::status =not_initialized |
IOKit memory status.
status of memory object
(c) copyright 2009 dynamic acoustics e.U. | generated on Fri Nov 15 2024 |