From: Alexander Stein <alexander.stein@systec-electronic.com>
To: Kurt Van Dijck <kurt.van.dijck@eia.be>
Cc: Marc Kleine-Budde <mkl@pengutronix.de>, linux-can@vger.kernel.org
Subject: Re: exclusive access to can interface
Date: Tue, 22 Jan 2013 14:36:24 +0100 [thread overview]
Message-ID: <1432460.mUnU8pZCtu@ws-stein> (raw)
In-Reply-To: <A2134122-6A5B-47CA-AB32-827CECA201B0@eia.be>
On Tuesday 22 January 2013 13:53:22, Kurt Van Dijck wrote:
> On 22 Jan 2013, at 10:41, Alexander Stein <alexander.stein@systec-electronic.com> wrote:
>
> > Hello again,
> >
> > On Monday 07 January 2013 19:16:20, Marc Kleine-Budde wrote:
> >> On 01/07/2013 05:52 PM, Alexander Stein wrote:
> >>> is there a way to get exclusive (write) access to a CAN interface, so
> >>> that only one bound socket can write CAN frames on the bus?
> >>
> >> No, what's the use case?
> >
> > I have now a more detailed view about the customers request and background: The problem runs some (time consuming) tests using CAN and they want to prohibit CAN write access meanwhile in order to prevent e.g. some (mis-)configuration of CAN devices or firmware updates. In such a case the test might shutdown and needs to be
> exclusive access could be used to prevent possible race conditions, not to solve configuration of the local software.
>
> > restarted. During the test nobody alse should be allowed to write to the CAN bus. I think this is justified.
> "Nobody should write to the CAN bus" != "Nobody should be allowed to write to the CAN bus"
>
> The exclusive access is only enforce on the local system. Other participants on the CAN bus
> still are able to write to the CAN bus.
> Your problem won't be solved.
As this specific CAN interface is the only access to this CAN network it is enough. It is obvious that you can't lock this bus completly, the same is for file locking on networking file systems, they either don't work at all or just locally.
Best regards,
Alexander
next prev parent reply other threads:[~2013-01-22 13:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-07 16:52 exclusive access to can interface Alexander Stein
2013-01-07 18:16 ` Marc Kleine-Budde
2013-01-08 9:23 ` Alexander Stein
2013-01-08 9:32 ` Marc Kleine-Budde
2013-01-08 9:48 ` Alexander Stein
2013-01-08 10:09 ` Oliver Hartkopp
2013-01-08 10:18 ` Heinz-Jürgen Oertel
2013-01-08 10:08 ` Wolfgang Grandegger
2013-01-08 10:15 ` Heinz-Jürgen Oertel
2013-01-22 9:41 ` Alexander Stein
2013-01-22 12:53 ` Kurt Van Dijck
2013-01-22 13:36 ` Alexander Stein [this message]
2013-01-07 18:37 ` Oliver Hartkopp
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=1432460.mUnU8pZCtu@ws-stein \
--to=alexander.stein@systec-electronic.com \
--cc=kurt.van.dijck@eia.be \
--cc=linux-can@vger.kernel.org \
--cc=mkl@pengutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).