NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES
#include <mem/chMem.h>int svMemRead(void * src, void * dest, int count);
MEM_FLAT, MEM_PROTECTED, MEM_VIRTUAL
This system call is strictly reserved for internal use only. It MUST NOT be used by any application.
These calls are used by programs to access supervisor address space memory safely.
The svMemRead functioncopies count bytes from the address src in the supervisor address space, to the address dest in the supervisor address space. If access to the area defined by src and count in the supervisor address space produces a memory access fault, svMemRead will return an error code (K_EFAULT).
The svMemWrite call copies count bytes from the address src in the supervisor address space, to the address dest in the supervisor address space. If access to the area defined by dest and count in the supervisor address space produces a memory access fault, svMemWrite will return an error code (K_EFAULT).
If successful, svMemRead and svMemWrite return 0. Otherwise, they return K_EFAULT.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES