Re: [linux-audio-dev] shared memory tools?

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] shared memory tools?
From: Steve Harris (S.W.Harris_AT_ecs.soton.ac.uk)
Date: Thu Mar 06 2003 - 22:54:09 EET


On Thu, Mar 06, 2003 at 02:33:46PM -0500, rm wrote:
> On Thu, Mar 06, 2003 at 09:12:03PM +0200, Juhana Sadeharju wrote:
> > Hello. I need two functions:
> >
> > make_shm(int size, char *key)
> > -run by root
> > -creates a locked shared memory segment
> > -returns a key (preferably a string) which is used to
> > access the shared memory
>
> shm segments are identified by key id (key_t), use ftok on a file to turn
> a string (the path to the file) into a key.

Or you can use Posix SHM shm_open(3), which is more portable, in theory.

POSIX shm segments are identified by a string.

- Steve


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Thu Mar 06 2003 - 22:51:15 EET