Introduction   User API Reference   DSMlib Reference   IDL Interface   File List   Index  

dm_mem.h File Reference

Memory dataspace manager client API. More...

Go to the source code of this file.

Data Structures

struct  l4dm_mem_addr

Typedefs

typedef struct l4dm_mem_addr l4dm_mem_addr_t

Functions

L4_CV int l4dm_mem_open (l4_threadid_t dsm_id, l4_size_t size, l4_addr_t align, l4_uint32_t flags, const char *name, l4dm_dataspace_t *ds)
 Create new dataspace.
L4_CV int l4dm_mem_size (const l4dm_dataspace_t *ds, l4_size_t *size)
 Return dataspace size.
L4_CV int l4dm_mem_resize (const l4dm_dataspace_t *ds, l4_size_t new_size)
 Resize dataspace.
L4_CV int l4dm_mem_info (const l4dm_dataspace_t *ds, l4_size_t *size, l4_threadid_t *owner, char *name, l4_uint32_t *next_id)
 Get debugging information.
L4_CV int l4dm_mem_ds_phys_addr (const l4dm_dataspace_t *ds, l4_offs_t offset, l4_size_t size, l4_addr_t *paddr, l4_size_t *psize)
 Get phys. address of dataspace region.
L4_CV int l4dm_mem_phys_addr (const void *ptr, l4_size_t size, l4dm_mem_addr_t addrs[], int num, l4_size_t *psize)
 Get phys. address of a of VM region.
L4_CV int l4dm_mem_ds_is_contiguous (const l4dm_dataspace_t *ds)
 Test if dataspace is allocated on contiguous memory.
L4_CV int l4dm_mem_ds_lock (const l4dm_dataspace_t *ds, l4_offs_t offset, l4_size_t size)
 Lock dataspace region.
L4_CV int l4dm_mem_ds_unlock (const l4dm_dataspace_t *ds, l4_offs_t offset, l4_size_t size)
 Unlock dataspace region.
L4_CV int l4dm_mem_lock (const void *ptr, l4_size_t size)
 Lock virtual memory region.
L4_CV int l4dm_mem_unlock (const void *ptr, l4_size_t size)
 Unlock virtual memory region.
L4_CV void * l4dm_mem_allocate (l4_size_t size, l4_uint32_t flags)
 Allocate memory.
L4_CV void * l4dm_mem_allocate_named (l4_size_t size, l4_uint32_t flags, const char *name)
 Allocate memory, name dataspace.
L4_CV void * l4dm_mem_ds_allocate (l4_size_t size, l4_uint32_t flags, l4dm_dataspace_t *ds)
 Allocate memory.
L4_CV void * l4dm_mem_ds_allocate_named (l4_size_t size, l4_uint32_t flags, const char *name, l4dm_dataspace_t *ds)
 Allocate memory, name dataspace.
L4_CV void * l4dm_mem_ds_allocate_named_dsm (l4_size_t size, l4_uint32_t flags, const char *name, l4_threadid_t dsm_id, l4dm_dataspace_t *ds)
 Allocate memory, name dataspace.
L4_CV void l4dm_mem_release (const void *ptr)
 Release memory.


Detailed Description

Memory dataspace manager client API.

Date:
11/23/2001
Author:
Lars Reuther <reuther@os.inf.tu-dresden.de>

Definition in file dm_mem.h.


DMphys Reference Manual, written by Lars Reuther  © 2000-2003