dxd - dynax driver framework 2.1.0d73
cross platform open source driver development framework
|
kernel memory buffer w/o alignment and boundary requirements More...
#include <dxd_memory.h>
Public Member Functions | |
buffer ()=default | |
IOKit default buffer constructor. | |
buffer ()=default | |
WDK buffer default constructor. | |
buffer (size_t size, unsigned int limit=limit_t, unsigned int alignment=alignment_t, bool contigous=contigous_t) | |
IOKit buffer constructor. | |
buffer (size_t size, unsigned int limit=limit_t, unsigned int alignment=alignment_t, bool contigous=contigous_t) | |
WDK buffer constructor. | |
void | free () |
os_result | initialize (::IOMemoryDescriptor *iokit_memory_descriptor) |
IOKit memory initializer. | |
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 (::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. | |
os_result | initialize (const::MDL *mdl) |
os_result | initialize (const::MDL *mdl) |
os_result | initialize (const::MDL *mdl, size_t offset, size_t size) |
os_result | initialize (const::MDL *mdl, size_t offset, size_t size) |
os_result | initialize (size_t size, unsigned int limit=limit_t, unsigned int alignment=alignment_t, bool contigous=contigous_t) |
IOKit buffer initializer. | |
os_result | initialize (size_t size, unsigned int limit=limit_t, unsigned int alignment=alignment_t, bool contigous=contigous_t) |
os_result | initialize (void *data, size_t size) |
IOKit memory initializer. | |
os_result | initialize (void *data, size_t size) |
IOKit memory initializer. | |
operator const::IOMemoryDescriptor * () const | |
IOKit IOMemoryDescriptor* implicit cast. | |
operator const::IOMemoryDescriptor * () const | |
IOKit IOMemoryDescriptor* implicit cast. | |
operator uint64_t () const | |
IOKit physical address (only relevant for contigous memory) | |
operator uint64_t () const | |
IOKit physical address (only relevant for contigous memory) | |
operator::IOMemoryDescriptor * () | |
operator::IOMemoryDescriptor * () | |
operator::MDL * () const | |
operator::MDL * () const | |
size_t | size () const |
IOKit memory size. | |
size_t | size () const |
IOKit memory size. | |
virtual | ~buffer () |
WDK buffer memory destructor. | |
Public Attributes | |
os_result | status |
IOKit memory status. | |
os_result | status =not_initialized |
IOKit memory status. | |
kernel memory buffer w/o alignment and boundary requirements
generic WDK buffer class
The dxd::buffer is a kernel memory representation with an associated memory backing store allocation. The memory backing store is owned by this kernel memory representation and the reference will be released when this object is destroyed.
|
default |
IOKit default buffer constructor.
Use this in conjunction with initialize()
|
inline |
IOKit buffer constructor.
size | size to be alloced by buffer object |
limit | limit physical memory address space |
alignment | enforce physical memory alignment |
contigous | enforce contiguos physical memory |
|
default |
WDK buffer default constructor.
|
inline |
WDK buffer constructor.
size | size to be alloced by buffer object |
limit | limit physical memory address space |
alignment | enforce physical memory alignment |
contigous | enforce contiguos physical memory |
|
inlinevirtual |
WDK buffer memory destructor.
|
inline |
|
inlineinherited |
IOKit memory initializer.
|
inlineinherited |
IOKit memory initializer.
|
inlineinherited |
IOKit memory initializer.
|
inlineinherited |
IOKit memory initializer.
|
inherited |
IOKit memory initializer.
data | virtual base address of range to create memory descriptor from |
size | size of range to create memory descriptor from |
|
inherited |
IOKit memory initializer.
data | virtual base address of range to create memory descriptor from |
size | size of range to create memory descriptor from |
|
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 |
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 |
|
inlineinherited |
|
inline |
IOKit buffer initializer.
Allows re-initialization.
Creates a buffer and associated memory descriptor.
Wires down the backing store memory.
size | size to be alloced by buffer object |
limit | limit physical memory address space |
alignment | enforce physical memory alignment |
contigous | enforce contiguos physical memory |
|
inline |
Allows re-initialization
size | size to be alloced by buffer object |
limit | limit physical memory address space |
alignment | enforce physical memory alignment |
contigous | enforce contiguos physical memory |
|
inherited |
IOKit memory initializer.
data | virtual base address of range to create memory descriptor from |
size | size of range to create memory descriptor from |
|
inherited |
IOKit memory initializer.
data | virtual base address of range to create memory descriptor from |
size | size of range to create memory descriptor from |
|
inlineinherited |
IOKit IOMemoryDescriptor* implicit cast.
|
inlineinherited |
IOKit IOMemoryDescriptor* implicit cast.
|
inlineinherited |
IOKit physical address (only relevant for contigous memory)
|
inlineinherited |
IOKit physical address (only relevant for contigous memory)
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
IOKit memory size.
|
inlineinherited |
IOKit memory size.
|
inherited |
IOKit memory status.
status of memory object
|
inherited |
IOKit memory status.
status of memory object
(c) copyright 2009 dynamic acoustics e.U. | generated on Fri Nov 15 2024 |