[PD] share-mem lib

Charles Goyard cg at fsck.fr
Mon Feb 25 15:13:28 CET 2013


Hi,

Cyrille Henry wrote:
> i just did a initial commit of share-mem, a lib dedicated to deal with
> shared memory.

Wow, great !

I'd like to use this to share pixes with veejay (a vjing tool that runs
on linux). Veejay wants YUV and can read/write from/to shm. So it looks
like communication can be done pretty easily. (note there's also an OGRE
plugin that uses shm).

My question is: how can I map the shm id of pix_share_write to the
output of ipcs ? Reading the source code left me clueless.

For example:
[ set 400 256 256 RGBA (
creates this:
~$ ipcs
key        shmid                            size
0x0000798c 229379     charles    666        262164     1

veejay want the shm id as shown in the second field.

How course I can grep the pid and look for pd. But it won't work for
several shms.

Thanks for any hints,

-- 
Charles



More information about the Pd-list mailing list