[linux-audio-dev] Shared memory?

Ralfs Kurmis kurmisk at inbox.lv
Thu Jul 3 11:41:01 UTC 2003


Terve

Try out this example
Split it in seperate files
( Needs x )

RalfsK


> Hello. I have problems in getting a shared memory to work.
> What works is my shmalloc() which is used for sharing memory
> over fork(). What does not work is sharing memory between
> arbitrary processes. This latter uses ftok() with a pathname
> (e.g., "/tmp/globalshm") in identifying the shared memory.
> Each process uses the pathname for gaining access to the shared
> memory.
> 
> The simple example in "http://www.funet.fi/~kouhia/shmserver.tar.gz"
> does not work. It looks like shmserver creates the shared memory,
> but shmclient cannot find it.




---
This message contains no viruses. 
Guaranteed by Kaspersky Anti-Virus.
www.antivirus.lv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shm_3prg_xtrm.c
Type: application/octet-stream
Size: 4314 bytes
Desc: not available
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20030703/e0d14dd0/attachment.obj>


More information about the Linux-audio-dev mailing list