From: Paolo Minazzi <Paolo.Minazzi@mitrol.it>
To: xenomai@xenomai.org
Cc: "Maurizio.Macchi" <maurizio.macchi@mitrol.it>
Subject: [Xenomai] rtdm_event_wait seldom return -EINTR
Date: Thu, 27 Feb 2014 15:04:44 +0100 [thread overview]
Message-ID: <530F45FC.3060902@mitrol.it> (raw)
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
reply other threads:[~2014-02-27 14:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=530F45FC.3060902@mitrol.it \
--to=paolo.minazzi@mitrol.it \
--cc=maurizio.macchi@mitrol.it \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.