From: Wolfgang Grandegger <wg@domain.hid>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] Re: RT-CAN tx_sem
Date: Thu, 15 Feb 2007 09:37:45 +0100 [thread overview]
Message-ID: <45D41BD9.9020403@domain.hid> (raw)
In-Reply-To: <45D35545.20100@domain.hid>
Jan Kiszka wrote:
> Hi Wolfgang,
>
> fiddling with the CAN utils, I noticed the behaviour that rtcansend on
> freshly registered but stopped devices simply blocks. And when you
> meanwhile call rtcanconfig up on that device, rtcansend will continue to
> block.
This is a bug, the send function should return an error in that case.
> The reason is that during startup of CAN devices the tx-semaphore is
> re-initialised while it is already set up during device registration.
> Re-init on an already initialised rtdm_sem is, say, undefined.
>
> So rtdm_sem should better only be initialised/destroyed by the drivers.
> Trying to send on a shut down CAN device could be catched differently,
> e.g. via the device state. This likely needs more thoughts, take it as a
> note that $something should be done.
I'm going to check this later today or tomorrow.
Wolfgang.
next prev parent reply other threads:[~2007-02-15 8:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-14 18:30 [Xenomai-core] RT-CAN tx_sem Jan Kiszka
2007-02-15 8:37 ` Wolfgang Grandegger [this message]
2007-02-15 13:25 ` [Xenomai-core] " Wolfgang Grandegger
2007-02-15 13:36 ` Jan Kiszka
2007-02-15 13:54 ` Wolfgang Grandegger
2007-02-15 14:29 ` Jan Kiszka
2007-02-15 16:45 ` Wolfgang Grandegger
2007-02-17 10:19 ` Jan Kiszka
2007-02-18 18:31 ` Jan Kiszka
2007-02-18 19:53 ` Wolfgang Grandegger
2007-02-18 20:37 ` Jan Kiszka
2007-02-19 14:04 ` Wolfgang Grandegger
2007-02-19 14:15 ` Jan Kiszka
2007-02-19 14:48 ` Wolfgang Grandegger
2007-02-15 14:01 ` Sebastian Smolorz
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=45D41BD9.9020403@domain.hid \
--to=wg@domain.hid \
--cc=jan.kiszka@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.