9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: rbnsw-plan9@yahoo.com.au, 9fans@9fans.net
Subject: Re: [9fans] RFS alternatives (Was: Living with Plan 9)
Date: Mon, 27 Jun 2011 13:24:00 -0400	[thread overview]
Message-ID: <e7d01857821b81c77ed5dbdf1c0aa895@ladd.quanstro.net> (raw)
In-Reply-To: <1309194435.17968.YahooMailClassic@web30908.mail.mud.yahoo.com>

> Speaking of device numbers, I was surprised that Plan 9 has a similar
> notion.  However, they are only useful with kernel resident device
> numbers.  Does Plan 9 have some other mechanism that allow one to
> identify the class of device/file server it belongs to?
>
> In most cases, a name is good enough, but sometimes its not.

no.  most stereotypical drivers are written in the miniport
style.  (please excuse the reference.)  where one bag of generic
code provides the interface, so one interacts with all ethernet,
serial or storage devices in the same way.

> And speaking of opaqueness, while Plan 9 might use portable data
> representation, some interfaces are perhaps unnecessarily opaque in a
> different way.  Consider the uart ctl file with its encoded string of
> device attributes.

what kind of abstract manipuation of serial devices could you imagine
would be useful?

> Oh, and it would be better if the uart device was consistent with the
> files in net with their separate data and ctl files, if one is going
> to rely on conventions they should be consistent.  Despite the other
> faults of ioctl there's no doubt where the control interface of a
> device is.

but it does.  there's eia0status, eia0ctl and eia0 (the data file).
; ls '#t'
'#t/eia0'
'#t/eia0ctl'
'#t/eia0status'
'#t/eia1'
'#t/eia1ctl'
'#t/eia1status'

- erik



  parent reply	other threads:[~2011-06-27 17:24 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-27 17:07 rbnsw-plan9
2011-06-27 17:20 ` ron minnich
2011-06-27 17:45   ` Jeff Sickel
2011-06-27 18:18     ` Skip Tavakkolian
2011-06-27 19:13       ` dexen deVries
2011-06-27 20:17         ` erik quanstrom
2011-06-27 21:23           ` dexen deVries
2011-06-30 15:31             ` Yaroslav
2011-06-27 18:26   ` Richard Miller
2011-06-27 20:50   ` [9fans] Four chances (was RFS alternatives (Was: Living with Plan 9)) Aharon Robbins
2011-06-27 17:24 ` erik quanstrom [this message]
2011-06-30 17:11   ` [9fans] RFS alternatives (Was: Living with Plan 9) rbnsw-plan9
2011-06-30 20:07     ` erik quanstrom
  -- strict thread matches above, loose matches on Subject: below --
2011-06-21 17:35 rbnsw-plan9
2011-06-21 22:42 ` dave.l
2011-06-22 15:16   ` Charles Forsyth
2011-06-11 19:26 rbnsw-plan9
2011-06-21 12:51 ` Eric Van Hensbergen

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=e7d01857821b81c77ed5dbdf1c0aa895@ladd.quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    --cc=rbnsw-plan9@yahoo.com.au \
    /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).