From: Johannes Berg <johannes@sipsolutions.net>
To: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: linux-kernel@vger.kernel.org, linux1394-devel@lists.sourceforge.net
Subject: Re: [RFC 4/4] firewire: add mem1394
Date: Tue, 07 Feb 2006 11:41:36 +0100 [thread overview]
Message-ID: <1139308896.25972.9.camel@localhost> (raw)
In-Reply-To: <43E60989.5080600@s5r6.in-berlin.de>
[-- Attachment #1: Type: text/plain, Size: 1955 bytes --]
On Sun, 2006-02-05 at 15:19 +0100, Stefan Richter wrote:
> > + * But I need advice on this. It'll probably works this way
> > + * but most likely not once this interface stuff gets more
> > + * use; I can imagine using it for scanners instead of raw1394
> > + * so that the kernel can validate that a user can only
> > + * access a certain scanner and not all 1394 devices on the bus.
>
> Probably not. All devices (except perhaps custom embedded devices) which
> implement one or another high level protocol will always be accessed
> either by a protocol driver in kernelspace (like sbp2, eth1394,
> video1394) on top of a struct unit_directory, or by a driver or library
> in userspace on top of libraw1394/ raw1394. This is because such devices
> and protocols all implement the ISO/IEC 13213 CSR architecture.
You snipped too much :) At this point I was thinking of the raw1394
replacement that has finer grained access control which we talked about
in other threads too.
> > + * In other words some 'raw1394intf' instead of 'raw1394' which
> > + * creates one character device per ieee1394 node for finer
> > + * grained access control.
> > + * That would definitely want to have debouncing etc.
> When a node represented by a node_entry leaves the bus, the node_entry
> is "suspended" and "put into limbo", which is both the same for the 1394
> stack. The node_entry is only "removed" when forced by userspace through
> ieee1394's sysfs interface or when the ieee1394 driver module is
> unloaded. A unit_directory is either "suspended" or "removed", depending
> on what the protocol driver bound to the unit_directory implements.
> This behaviour of ieee1394 is currently not extensively used, but I plan
> to implement capability of sbp2 to survive transient disconnection on
> top of it.
Thanks for the explanation. I'll have to test my driver under the light
of this.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
prev parent reply other threads:[~2006-02-07 13:55 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-02 22:27 [RFC 0/4] firewire: interface to remote memory (mem1394) Johannes Berg
2006-02-02 22:38 ` [RFC 1/4] firewire: node interface Johannes Berg
2006-02-02 22:40 ` [RFC 2/4] firewire: dynamic cdev allocation below firewire major Johannes Berg
2006-02-05 13:11 ` Stefan Richter
2006-02-13 3:51 ` Jody McIntyre
2006-02-13 7:32 ` Arjan van de Ven
2006-02-13 12:02 ` Johannes Berg
2006-02-13 16:49 ` Stefan Richter
2006-02-13 21:10 ` Arjan van de Ven
2006-02-14 15:41 ` Johannes Berg
2006-02-02 22:41 ` [RFC 3/4] firewire: unconditionally export hpsb_send_packet_and_wait Johannes Berg
2006-02-05 13:42 ` Stefan Richter
2006-02-07 10:45 ` Johannes Berg
2006-02-02 22:43 ` [RFC 4/4] firewire: add mem1394 Johannes Berg
2006-02-03 11:35 ` Andy Wingo
2006-02-03 11:47 ` Johannes Berg
2006-02-05 12:59 ` Stefan Richter
2006-02-05 8:43 ` Andrew Morton
2006-02-05 9:09 ` Kyle Moffett
[not found] ` <43E5D599.5040503@s5r6.in-berlin.de>
2006-02-05 20:09 ` Stefan Richter
2006-02-05 20:17 ` Andi Kleen
2006-02-05 20:50 ` Stefan Richter
2006-02-06 8:44 ` Andi Kleen
2006-02-05 14:19 ` Stefan Richter
2006-02-07 10:41 ` Johannes Berg [this message]
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=1139308896.25972.9.camel@localhost \
--to=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux1394-devel@lists.sourceforge.net \
--cc=stefanr@s5r6.in-berlin.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 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.