L4Re - L4 Runtime Environment
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Dataspace interface

Dataspace C interface. More...

+ Collaboration diagram for Dataspace interface:

Data Structures

struct  l4re_ds_stats_t
 Information about the data space. More...

Typedefs

typedef l4_cap_idx_t l4re_ds_t
 Dataspace type.
typedef l4_cap_idx_t l4re_namespace_t
 Dataspace type.

Functions

long l4re_ds_clear (const l4re_ds_t ds, l4_addr_t offset, unsigned long size) L4_NOTHROW
long l4re_ds_allocate (const l4re_ds_t ds, l4_addr_t offset, l4_size_t size) L4_NOTHROW
int l4re_ds_copy_in (const l4re_ds_t ds, l4_addr_t dst_offs, const l4re_ds_t src, l4_addr_t src_offs, unsigned long size) L4_NOTHROW
long l4re_ds_size (const l4re_ds_t ds) L4_NOTHROW
long l4re_ds_flags (const l4re_ds_t ds) L4_NOTHROW
int l4re_ds_info (const l4re_ds_t ds, l4re_ds_stats_t *stats) L4_NOTHROW
int l4re_ds_phys (const l4re_ds_t ds, l4_addr_t offset, l4_addr_t *phys_addr, l4_size_t *phys_size) L4_NOTHROW
 Return physical address.

Detailed Description

Dataspace C interface.

Function Documentation

long l4re_ds_clear ( const l4re_ds_t  ds,
l4_addr_t  offset,
unsigned long  size 
)
Returns
0 on success, <0 on errors
See Also
L4Re::Dataspace::clear
long l4re_ds_allocate ( const l4re_ds_t  ds,
l4_addr_t  offset,
l4_size_t  size 
)
Returns
0 on success, <0 on errors
See Also
L4Re::Dataspace::allocate
int l4re_ds_copy_in ( const l4re_ds_t  ds,
l4_addr_t  dst_offs,
const l4re_ds_t  src,
l4_addr_t  src_offs,
unsigned long  size 
)
Returns
0 on success, <0 on errors
See Also
L4Re::Dataspace::copy_in
long l4re_ds_size ( const l4re_ds_t  ds)
Returns
size of dataspace, <0 on errors
See Also
L4Re::Dataspace::size
long l4re_ds_flags ( const l4re_ds_t  ds)
int l4re_ds_info ( const l4re_ds_t  ds,
l4re_ds_stats_t stats 
)
int l4re_ds_phys ( const l4re_ds_t  ds,
l4_addr_t  offset,
l4_addr_t phys_addr,
l4_size_t phys_size 
)

Return physical address.

Parameters
dsDataspace
offsetOffset in bytes in dataspace
Return values
phys_addrPhysical address
phys_sizeSize of physically contiguous region starting from phys_addr (in bytes).
Returns
0 for success, <0 on error

The function returns the physical address of an offset in a dataspace. Use multiple calls of the function to get all physical regions in case of physically non-contiguous dataspaces.

See Also
L4Re::Dataspace::phys
L4Re - L4 Runtime Environment