From: Jochen Behnke <JK.Behnke@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] unwanted switch to secondary mode on call to rt_dev_ioctl
Date: Wed, 06 Aug 2008 12:30:53 +0200 [thread overview]
Message-ID: <1251450790@domain.hid> (raw)
Hello,
my xenomai application performs unwanted mode switches to secondary mode. To find out
which function is causing the mode switch I activated the T_WARNSW bit for the xenomai
task involved. I figured out that a call to rt_dev_ioctl is the cause. Then I found out that the
responsible rtdm driver does only register an ioctl_nrt handler leaving the ioctl_rt handler
set to NULL. It seemed logical to me, that calling a nonrt driver function from a xenomai task
in primary mode would cause a switch to secondary mode.
So I modified the rtdm driver to register the ioctl handler for both ioctl_nrt and
ioctl_rt. Unfortunately this did not solve the problem.
As a next step I reduced the ioctl handler to a "return 0" statement, to be sure that
no function calls inside the ioctl handler could generate a switch to secondary mode.
Again this did not improve the situation. It even seems as if the driver's ioctl handler is not
called at all.
For the most recent test I wrote a smaller xenomai application that does cyclic rt_dev_ioctl
calls on the same rtdm driver from within a seperate xenomai task. The application runs
without problems, the rt task does not perform any unwanted switches to secondary mode
thus not receiving any SIGXCPU signals.
My configuration
Processor Celeron 400Hz
xenomai 2.4.2
Kernel 2.6.24
I have no idea what is going wrong, any hint is appreciated.
Thanks.
Jochen
_________________________________________________________________________
In 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten!
Nur 3,99 EUR/Monat! http://www.maildomain.web.de/?mc=021114
next reply other threads:[~2008-08-06 10:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-06 10:30 Jochen Behnke [this message]
2008-08-06 12:11 ` [Xenomai-help] unwanted switch to secondary mode on call to rt_dev_ioctl Gilles Chanteperdrix
2008-08-06 18:30 ` Jochen Behnke
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=1251450790@domain.hid \
--to=jk.behnke@domain.hid \
--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.