Multiplexing and rtcan socket
I'm trying to use multiplexing wih rtcan sockets (using xeno_can_flexcan driver).
Unfortunately, i had no luck yet to make it work. __RT(select) fails with ENODEV error, while __RT(poll) returns a POLLERR event.
Is it unsupported, or am i doing something wrong ? (like a missing parameter). Sample code to reproduce the issue is attached.
Regards,
Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cpp
Type: text/x-c++src
Size: 1982 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20180202/6606775e/attachment.cpp>
Quoted 5 lines · Julien Blanc
I'm trying to use multiplexing wih rtcan sockets (using
xeno_can_flexcandriver).Unfortunately, i had no luck yet to make it work.
__RT(select)fails with ENODEV error, while__RT(poll)returns a POLLERR event.
poll() is not implemented by libcobalt, only select() so far, so I would be surprised that __RT(poll()) had ever been called. The regular poll() service from the glibc may have been.
Quoted 4 lines
Is it unsupported, or am i doing something wrong ? (like a missing parameter). Sample code to reproduce the issue is attached.
The RTCAN stack predates the implementation of select(), and was never updated to provide this, hence ENODEV. If somebody volunteers to provide this, this should likely go into the code implementing the raw CAN socket.
Signature · 1 line
Philippe.
Le dimanche 04 février 2018 à 10:58 +0100, Philippe Gerum a écrit :
Quoted 9 lines · Julien Blanc
Quoted 8 lines
I'm trying to use multiplexing wih rtcan sockets (using
xeno_can_flexcandriver).
Is it unsupported, or am i doing something wrong ? (like a missing parameter). Sample code to reproduce the issue is attached.
Quoted 6 lines
The RTCAN stack predates the implementation of
select(), and was never
updated to provide this, hence ENODEV. If somebody volunteers to provide
this, this should likely go into the code implementing the raw CAN socket.
Thanks for your answer. I unfortunately will have no time to spend on this in the near future, since this is not a critical issue for us.
I'll look into it when possible, though, it would be a very nice to have feature.
Regards,
Julien