using mq_receive and mq_send
it says:
U __wrap_mq_close
U __wrap_mq_open
U __wrap_mq_receive
U __wrap_mq_send
U __wrap_mq_unlink
-----Original Message-----
From: Philippe Gerum [mailto:[email protected]]
Sent: Wednesday, November 30, 2005 4:37 PM
To: Landau, Bracha
Cc: [email protected]
Subject: Re: [Xenomai-help] using mq_receive and mq_send
Quoted 2 lines · Bracha
I do link that way. The linking is fine, only the
mq_receiveandmq_senddon't work. I don't even "own" the regular libmqueue library.
What does "nm <your_app>|grep wrap_mq_" says?
Quoted 28 lines
-----Original Message-----
From: Philippe Gerum [mailto:[email protected]]
Sent: Wednesday, November 30, 2005 4:01 PM
To: Landau, Bracha
Cc: [email protected]
Subject: Re: [Xenomai-help] usingmq_receiveandmq_sendQuoted 4 lines · Bracha
I am using Xenomai on the MPC8272ADS board with kernel 2.6.14.3.
I've created an application that uses posix message queuing from xenomai.
Quoted 8 lines
When I call
mq_open,mq_close,mq_setattr,mq_getattr,mq_unlink- the calls succeed.When I call
mq_receiveormq_send, the call fails (returns -1) and errno is set to 1 (Operation not permited).I put some debugging printk's into the xenomai code and it seems it doesn't even get to the call to
__mq_receiveor__mq_sendfromsyscall.c(it does get to printk's that I put in the other __mq_* functions).Can anyone help?
You must link your app with the flags output by "xeno-config --posix-ldflags". Have a look at skins/posix/demos/Makefile for a working example.
Signature · 4 lines
Philippe. *********************************************************************************** This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [email protected] and destroy the original message. ***********************************************************************************
Quoted 6 lines · Bracha
it says:
U__wrap_mq_close
U__wrap_mq_open
U__wrap_mq_receive
U__wrap_mq_send
U__wrap_mq_unlink
Are you calling send and receive from a xenomai thread? EPERM (1) is typically related to non-RT invocations.
Jan
Quoted 44 lines
-----Original Message-----
From: Philippe Gerum [mailto:[email protected]]
Sent: Wednesday, November 30, 2005 4:37 PM
To: Landau, Bracha
Cc: [email protected]
Subject: Re: [Xenomai-help] usingmq_receiveandmq_sendQuoted 2 lines · Bracha
I do link that way. The linking is fine, only the
mq_receiveandmq_senddon't work. I don't even "own" the regular libmqueue library.What does "nm <your_app>|grep
wrap_mq_" says?Quoted 27 lines
-----Original Message-----
From: Philippe Gerum [mailto:[email protected]]
Sent: Wednesday, November 30, 2005 4:01 PM
To: Landau, Bracha
Cc: [email protected]
Subject: Re: [Xenomai-help] usingmq_receiveandmq_sendQuoted 4 lines · Bracha
I am using Xenomai on the MPC8272ADS board with kernel 2.6.14.3.
I've created an application that uses posix message queuing from xenomai.
Quoted 8 lines
When I call
mq_open,mq_close,mq_setattr,mq_getattr,mq_unlink- the calls succeed.When I call
mq_receiveormq_send, the call fails (returns -1) and errno is set to 1 (Operation not permited).I put some debugging printk's into the xenomai code and it seems it doesn't even get to the call to
__mq_receiveor__mq_sendfromsyscall.c(it does get to printk's that I put in the other __mq_* functions).Can anyone help?
You must link your app with the flags output by "xeno-config --posix-ldflags". Have a look at skins/posix/demos/Makefile for a working example.
Signature · 6 lines
Dipl.-Ing. Jan Kiszka Institute for Systems Engineering, Real-Time Systems Group (RTS) Appelstraße 9A, D-30167 Hannover phone +49 511 762-3974 / fax +49 511 762-4012 http://www.rts.uni-hannover.de