dxd - dynax driver framework 2.2.0d81
cross platform open source driver development framework
|
WDK memory mapping. More...
#include <dxd_memory.h>
Public Member Functions | |
void | free () |
kernel map free | |
os_result | initialize (::IOMemoryDescriptor *iokit_memory_descriptor, size_t offset=0) |
IOKit kernel map initializer. | |
map ()=default | |
IOKit default mapping constructor. | |
map (::IOMemoryDescriptor *iokit_memory_descriptor, size_t offset=0) | |
IOKit mapping constructor. | |
operator const vm_t * () const | |
operator const::IOMemoryMap * () const | |
operator vm_t * () const | |
vm_t * | operator-> () |
const vm_t * | operator-> () const |
operator to use mapping like pointer | |
operator::IOMemoryMap * () | |
size_t | size () const |
kernel mapping size | |
~map () | |
Public Attributes | |
os_result | status =not_initialized |
status of mapping object | |
Protected Attributes | |
vm_t * | _vm =nullptr |
kernel virtual address mapping | |
::IOMemoryMap * | iokit_memory_map =nullptr |
WDK memory mapping.
|
default |
IOKit default mapping constructor.
|
inline |
IOKit mapping constructor.
iokit_memory_descriptor | IOMemoryDescriptor to be mapped into the kernel address space |
offset | offset into memory descriptor to create mapping |
|
inline |
|
inline |
kernel map free
Checks if kernel mapping already exists and
does not call unmap(): IOMemoryMap instances will unmap themselves upon free, ie. when the last client with a reference calls release. unmap() forces the IOMemoryMap to destroy the mapping it represents, regardless of the number of clients. releases the map object.
|
inline |
IOKit kernel map initializer.
map<kernel> maps an IOMemoryDescriptor (typically cast of a dxd::memory or buffer class) into the kernel address space.
https://developer.apple.com/library/content/qa/qa1197/_index.html
Allows re-initialization.
Checks buffer object,
maps the buffer into the kernel (will fail if offset is given)
and obtains a kernel virtual address (apply offset here instead).
iokit_memory_descriptor | IOMemoryDescriptor to be mapped into the kernel address space |
offset | offset into memory descriptor to create mapping |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
operator to use mapping like pointer
|
inline |
|
inline |
kernel mapping size
|
protected |
kernel virtual address mapping
|
protected |
os_result dxd::map< scope_t, vm_t >::status =not_initialized |
status of mapping object
(c) copyright 2009 dynamic acoustics e.U. | generated on Fri Dec 20 2024 |