|
| 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.
|
|
template<dx::scope scope_t = dx::kernel, unsigned int limit_t = 64, unsigned int alignment_t = 0, bool contigous_t = false>
class dxd::buffer< scope_t, limit_t, alignment_t, contigous_t >
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.
template<dx::scope scope_t = dx::kernel, unsigned int limit_t = 64, unsigned int alignment_t = 0, bool contigous_t = false>
os_result dxd::buffer< scope_t, limit_t, alignment_t, contigous_t >::initialize |
( |
size_t | size, |
|
|
unsigned int | limit = limit_t, |
|
|
unsigned int | alignment = alignment_t, |
|
|
bool | contigous = contigous_t ) |
|
inline |
IOKit buffer initializer.
Allows re-initialization.
Creates a buffer and associated memory descriptor.
Wires down the backing store memory.
- Parameters
-
size | size to be alloced by buffer object |
limit | limit physical memory address space |
alignment | enforce physical memory alignment |
contigous | enforce contiguos physical memory |