All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] rtdm_event_wait seldom return -EINTR
@ 2014-02-27 14:04 Paolo Minazzi
  0 siblings, 0 replies; only message in thread
From: Paolo Minazzi @ 2014-02-27 14:04 UTC (permalink / raw)
  To: xenomai; +Cc: Maurizio.Macchi

Hi to all.
I have an embedded system with arm.
- kernel 2.6.31.8
- xenomau 2.5.6
Unfotunately it is very difficult for me to try a more recent version 
because kernel is not vanilla.

I run a test on my system.
Sporadically, after some days (sometimes also 2 weeks) of work, a 
rtdv_event_wait in a rtdm driver return -EINTR.

I read a lot about this problem.
If I understand correctly in this case I have to return -EINTR.
If I return -EINTR the flow of code should returns to user-space, than 
re-enter in xenomai rtdm-driver.

================================================================================
static ssize_t rteth_recvmsg(struct rtdm_dev_context *context, 
rtdm_user_info_t *user_info, struct msghdr *msg, int flag{
         ...
         rv = rtdm_event_wait(&priv->rx_event);
         if (rv == -EINTR)
                 return -EINTR;
         ...
================================================================================

I'd like to know why rtdm_event_wait return -EINTR.
 From documentation seems that rt-task received a signal.
To be clear I'm not working with gdb (debugger). I think no one sent a 
signal to my rt-task.
Maybe a signal is sent by xenomai to switch to/from primary/secondary mode.

What is the fair way to overcome this problem ?

Thanks in advance,
Paolo Minazzi



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-02-27 14:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-27 14:04 [Xenomai] rtdm_event_wait seldom return -EINTR Paolo Minazzi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.