Skip to contentSkip to conversation

rtdm_event_wait -EINTR error

Xenomai Johann Obermayr 2 participants 3 messages Mar 8, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello,

We have some user space task running into a rtdm driver (ioctl). this task are waiting for a event with rtdm_event_wait.

When our appliction crash, we see that rtdm_event_wait return with -4 (-EINTR). is this a normal behavior ?

Thanks
Johann

#1 lore raw
Quoted 9 lines · Johann Obermayr

Hello,

We have some user space task running into a rtdm driver (ioctl). this task are waiting for a event with rtdm_event_wait.

When our appliction crash, we see that rtdm_event_wait return with -4 (-EINTR).
is this a normal behavior ?

Please read your question above again, and ask yourself whether you actually gave us enough information to figure out what you are talking about.

Signature · 1 line
Philippe.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 29 lines · Johann Obermayr

Am 08.03.2016 um 11:24 schrieb Philippe Gerum:

Quoted 6 lines · Johann Obermayr
Quoted 5 lines

Hello,

We have some user space task running into a rtdm driver (ioctl). this task are waiting for a event with rtdm_event_wait.

Quoted 8 lines
Quoted 4 lines

When our appliction crash, we see that rtdm_event_wait return with -4 (-EINTR).
is this a normal behavior ?

Please read your question above again, and ask yourself whether you actually gave us enough information to figure out what you are talking about.

ok,
we have a application with some rt-task.
Some of the task are calling a function in our rtdm drive with rt_dev_ioctl.

in the ioctl we have follow code.

    if ((rval = rtdm_event_wait(&pIrqData->irq_event)) != 0) {
        if (rval != -EIDRM) {
            printk(KERN_ERR "rtdm_event_wait failed %d, irq:%d\n", rval,
local->irq_number);
        }
        return rval;
    }
Quoted 5 lines

if our application crash (we have no backtrace) , we see in the syslog some "rtdm_event_wait failed -4" messages.

why we see this message ?

This return code is documented:

http://www.xenomai.org/documentation/xenomai-3/html/xeno3prm/group__rtdm__sync__event.html#ga1c433b50c53d49d164b084751861e855

Signature · 1 line
Philippe.