Support for POSIX shared memory

76 views
Skip to first unread message

Ambika Tripathy

unread,
Jan 21, 2014, 1:38:15 AM1/21/14
to libne...@googlegroups.com
Hi,

The current libnetconf is using SysV-IPC-SHM shared memory rather than POSIX variant. This causing problem in porting the lib in QNX version. 

br,
Ambika

Radek Krejčí

unread,
Jan 21, 2014, 3:13:46 AM1/21/14
to Ambika Tripathy, libne...@googlegroups.com
Hi Ambika,
I added issue 26 into the libnetconf issue tracker. Due to some other tasks I cannot go into it immediately. It will also include some general review of using shared memory, because we know about another issue with it which I would like to solve together with your request.

Best regards,
Radek

Dne 21.1.2014 07:38, Ambika Tripathy napsal(a):
--
You received this message because you are subscribed to the Google Groups "libnetconf" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libnetconf+...@googlegroups.com.
Visit this group at http://groups.google.com/group/libnetconf.
For more options, visit https://groups.google.com/groups/opt_out.

scon...@gmail.com

unread,
May 4, 2015, 3:53:32 AM5/4/15
to libne...@googlegroups.com, ambika....@gmail.com
Hi Radek

Has there been any update to this situation? I'm trying to run on ucLinux and unfortunately this also does not support System V Shared Memory (shmget). Instead it supports POSIX shared memory (shm_open)

Sean

Radek Krejčí

unread,
May 4, 2015, 4:15:04 AM5/4/15
to scon...@gmail.com, libne...@googlegroups.com, ambika....@gmail.com
Hi,
no change so far (it is tracked as issue #26) - it's not currently a priority for us, anyway, we would be interested if you were willing to post some patch.

Regards,
Radek


Dne 30.4.2015 v 16:59 scon...@gmail.com napsal(a):

scon...@gmail.com

unread,
May 11, 2015, 5:18:57 AM5/11/15
to libne...@googlegroups.com, ambika....@gmail.com, scon...@gmail.com
Hi Radek

I have attached a version of internal.c that uses this Posix Shared Memory functions in place of the System V Shared Memory functions. This is enabled at compile time with the flag -DPOSIX_SHM

Take a look through it to see if it's OK. It works for me on ucLinux like this.

BTW - it might be useful to someone else, that I found out later that there is a flag on the Kernel compilation (CONFIG_SYSVIPC=y) which enables the System V Shm functions :-)

Sean

internal.c

Radek Krejčí

unread,
May 19, 2015, 7:39:15 AM5/19/15
to scon...@gmail.com, libne...@googlegroups.com, ambika....@gmail.com
Hello Sean,

sorry for the delay. Thank you for the patch, I've modified it slightly and now the functionality is available in the libnetconf master branch. Detection of System V/POSIX shared memory implementation should be now automatic, performed by configure, so you don't need to specify -DPOSIX_SHM anymore. I would appreciate if you can test the current solution in your environment and configrm that everything is working.

Best regards,
Radek


Dne 11.5.2015 v 11:18 scon...@gmail.com napsal(a):
Reply all
Reply to author
Forward
0 new messages