hi:
I work under Qnx4.25.I have several questions.
1¡¢I work under node2.First I use qnx_name_attach(1,"/pid2")
successfully,second I use
qnx_name_locate(1,"/pid2") it return -1.
2¡¢I use shm_open() function to create a shared memory object ,How can
I use the memory at another node?
Any ideas why?
“sunny-boy” <zqzou@nairc.ac.cn> wrote in message
news:a5hb7e$sd6$1@inn.qnx.com…
hi:
I work under Qnx4.25.I have several questions.
1¡¢I work under node2.First I use qnx_name_attach(1,"/pid2")
successfully,second I use
qnx_name_locate(1,"/pid2") it return -1.
Make sure you are running nameloc. Also, I’d normally pass 0 for the NID
(instead of your 1).
2¡¢I use shm_open() function to create a shared memory object ,How
can
I use the memory at another node?
You can’t – shared memory is accessible only to processes on the node on
which the memory is located.
–
Bert Menkveld
Engineer
Corman Technologies Inc.