RDLP_MemReadable(3)

RDLP_MemReadable3

Palmos memory-manipulation functions

Part of RDLP_MemHandleNew(3).

Usage

#include <palm.h>

#include <pconn/pconn.h>

int

RDLP_MemHandleNew(PConnection *pconn, udword size);

int

RDLP_MemMove(PConnection *pconn, ubyte *dst, const udword src, const udword len);

int

RDLP_MemReadable(PConnection *pconn, udword addr);

Library

libpconn

Overview

Presumably, RDLP_MemHandleNew allocates a new memory chunk of size bytes, and returns a pointer to it.

RDLP_MemMove reads a region of memory, and returns it.

dst is a pointer to a buffer that will be filled in with the desired memory region.

src is the starting address of the region to read.

len specifies the length of the region to read.

Presumably RDLP_MemReadable tests whether a given memory address exists and is readable.

Return value

These functions all return the contents of the Palm's D0 register after the function call, or a negative value in case of error.

Releases

Unchanged in 2 releases since Debian 3.1 (Sarge).

  1. 3.1–4.0

Bugs

RDLP_MemHandleNew and RDLP_MemReadable are untested.

From coldsync 3.0+pre3-3 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.