shmem

Is shmem really a ram disk?

We tried some applications in tcl (8.4) and the seek function works
correctly on file existing on HD but return with an error if the file is
in shmem.
Why?

Thanks
Alain

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:
: Is shmem really a ram disk?

: We tried some applications in tcl (8.4) and the seek function works
: correctly on file existing on HD but return with an error if the file is
: in shmem.
: Why?

/dev/shmem is not a real/fully functional ram file
system. If you are looking for a ram filesystem
which properly supports most/all filesystem semantics
then look into devf-ram.

The short and the skinny of the matter is that /dev/shmem
is a filesystem managed by proc and adding full filesystem
semantics to it would bloat proc uneccessarily.

Thomas

Thomas (toe-mah) Fletcher QNX Software Systems
thomasf@qnx.com Neutrino Development Group
(613)-591-0931 http://www.qnx.com/~thomasf