View topic - mq_open(): Function not implemented
mq_open(): Function not implemented
2 posts
• Page 1 of 1
mq_open(): Function not implemented
Hi,
I have an app just after kernal boot up. I use message queue in it. If I call mq_open() right away in my app, it shows " mq_open(): Function not implemented". If put sleep(1) before mq_open(), then it is fine.
As my understanding, mq_open(...,"my_mq_name",...) will create a path /dev/mqueue/my_mq_name. Just like file open() and create a file descriptor.
Questions: Is there any procondition or dependence for using mq?
Thanks
Sam
I have an app just after kernal boot up. I use message queue in it. If I call mq_open() right away in my app, it shows " mq_open(): Function not implemented". If put sleep(1) before mq_open(), then it is fine.
As my understanding, mq_open(...,"my_mq_name",...) will create a path /dev/mqueue/my_mq_name. Just like file open() and create a file descriptor.
Questions: Is there any procondition or dependence for using mq?
Thanks
Sam
- ssssam
- New Member
- Posts: 1
- Joined: Thu Jan 24, 2013 3:56 pm
Re: mq_open(): Function not implemented
Obviously you must start mq before your app attempts to make the mq_open() call. Mqueue (and I believe mq) also require that gns is running.
But the error message you are getting isn't one of the ones that are returned from mq_open. It looks more like something you'd see if you linked your process using a shared library that wasn't yet available (or gns isn't yet available).
So the question is how are you linking your app and what's your boot up look like.
Tim
But the error message you are getting isn't one of the ones that are returned from mq_open. It looks more like something you'd see if you linked your process using a shared library that wasn't yet available (or gns isn't yet available).
So the question is how are you linking your app and what's your boot up look like.
Tim
- Tim
- Senior Member
- Posts: 1514
- Joined: Wed Mar 10, 2004 12:28 am
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests