dxd - dynax driver framework 2.5.0d148
cross platform open source driver development framework
Loading...
Searching...
No Matches
dxd_memory.h File Reference
#include "dxd_platform.h"
+ Include dependency graph for driverkit/dxd_memory.h:

Classes

class  buffer< scope_t, limit_t, alignment_t, contigous_t >
 DriverKit memory buffer w/o alignment and boundary requirements. More...
 
class  map< scope_t, vm_t >
 DriverKit physical address (only relevant for contigous memory) More...
 

Enumerations

enum  direction : uint64_t { in = ::kIOMemoryDirectionIn , out = ::kIOMemoryDirectionOut , both = ::kIOMemoryDirectionIn| ::kIOMemoryDirectionOut }
 direction of memory operation More...
 

Functions

void free ()
 DriverKit memory free.
 
os_result initialize (::IOMemoryDescriptor *io_memory_descriptor)
 DriverKit memory initializer.
 
os_result initialize (::IOMemoryDescriptor *io_memory_descriptor, size_t offset, size_t size, direction direction)
 DriverKit memory initializer.
 
 memory ()=default
 DriverKit default constructor.
 
 memory (const memory &memory)
 
::IOMemoryDescriptor * retain ()
 
uint64_t size () const
 DriverKit memory size.
 
 ~memory ()
 DriverKit memory destructor.
 

Variables

os_result status = not_initialized
 DriverKit memory status.
 

Enumeration Type Documentation

◆ direction

direction of memory operation

Enumerator
in 
out 
both 

Function Documentation

◆ free()

void free ( )

DriverKit memory free.

Checks the underlaying OS memory descriptor,

synchronizes and unwires it from memory and

releases the memory descriptor.

+ Here is the caller graph for this function:

◆ initialize() [1/2]

os_result initialize ( ::IOMemoryDescriptor * io_memory_descriptor)

DriverKit memory initializer.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initialize() [2/2]

os_result initialize ( ::IOMemoryDescriptor * io_memory_descriptor,
size_t offset,
size_t size,
direction direction )

DriverKit memory initializer.

+ Here is the call graph for this function:

◆ memory() [1/2]

memory ( )
default

DriverKit default constructor.

Use this in conjunction with initialize()

+ Here is the caller graph for this function:

◆ memory() [2/2]

memory ( const memory & memory)
+ Here is the call graph for this function:

◆ retain()

::IOMemoryDescriptor * retain ( )
+ Here is the caller graph for this function:

◆ size()

uint64_t size ( ) const

DriverKit memory size.

+ Here is the call graph for this function:

◆ ~memory()

~memory ( )

DriverKit memory destructor.

+ Here is the call graph for this function:

Variable Documentation

◆ status

os_result status = not_initialized

DriverKit memory status.


(c) copyright 2009 dynamic acoustics e.U. generated on Fri Aug 22 2025

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.