I've been playing with the RTAI skin as I wanted a FIFO implementation
close to the one that used to exist in RTLinux.

I've setup an input handler to the FIFO, and this handler is trying to 
acquire some
Xenomai RT mutex that was previously (successfully) created by an RT task.

Acquisition of the handler always fails with -EPERM.
So I've checked the handler status through rtdm_in_rt_context () function
and it seems that the handler is always called from a non-RT context, which
obviously seems to be the reason of the permission denied result.

Is there a reason for the handler not being RT ?
Or any way to make it RT ?

Also, I'm using Xenomai native skin everywhere in my application, except
from FIFO handling which requires me to use RTAI skin for this input 
Native skin (through pipes) do not seem to provide capabilities to set 
an handler.
Is there a good reason for that ? And is there another way to simulate 
such a handler
than creating a dedicated task that would be wakeup each time something 
is written to the FIFO ?

Thanks for any help on this,



Xenomai-core mailing list

Reply via email to