From: Greg KH <greg@kroah.com>
To: "Kilau, Scott" <Scott_Kilau@digi.com>
Cc: germano.barreiro@cyclades.com, linux-kernel@vger.kernel.org
Subject: Re: patch for sysfs in the cyclades driver
Date: Wed, 3 Nov 2004 15:08:27 -0800 [thread overview]
Message-ID: <20041103230826.GA31333@kroah.com> (raw)
In-Reply-To: <71A17D6448EC0140B44BCEB8CD0DA36E04B9D81D@minimail.digi.com>
On Wed, Nov 03, 2004 at 04:35:44PM -0600, Kilau, Scott wrote:
>
> > Your driver can use whatever name you wanted, as long as it's the
> > LANNANA name that you asked for and were assigned. We do have
> standards
> > for a good reason, and the kernel will follow them.
>
> >That being said, have your customers use a tool like udev. Then they
> > can name their tty devices whatever they want. No limitations there
> at
> > all.
>
> The problem is that LANANA assumes a product/driver
> may only have a few tty's, say up to maybe 256 or so.
>
> For example, we have a driver that can support 1000s or 10000s of tty's.
Great, use udev for that.
> When dealing with that large amount of ttys, telling a customer
> that they should remember that a tty down in Austin TX is ttyD19234,
> and that the tty over in England is ttyD57267 is pretty ridiculous.
I agree, use udev.
> Our customers want to select a custom tty name base,
> as well as a custom tty port number...
> This way they can use logical names in an "area" specific range.
I agree, use udev.
> For example, maybe they have 10 16 port units in down in Texas,
> they may want to group them as /dev/ttytx000 to /dev/ttytx159,
> and the guy in england might want to name theirs
> /dev/ttyengland_a to /dev/ttyengland_h
Fine, have them use udev.
> I agree using udev is a solution to the final name problem in /dev,
> as long as they are using 2.6, (altough I have to support 2.4 as well).
We aren't talking about 2.4 here though. 2.4 is a totally different
subject.
> But using udev still doesn't allow me to create that custom name in
> /sys/class/tty.
You don't want to do that. The kernel doesn't want you to do that.
Userspace doesn't want you to do that. No one wants that.
> I understand this is where you would say we should use the ttyD12143
> value,
> but I feel that it simply doesn't show the "linkage" between that value
> and the "custom" name in /dev as easily as it would if I could create a
> custom name for the tty in /sys/class/tty.
udev will show you that /dev/ttyfoo really is /sys/class/tty/ttyD12143:
$ udevinfo -n /dev/ttyfoo -q path
/class/tty/ttyD12143
So you do have that "linkage". Don't mess around with kernel names,
it's not allowed. Mess around with userspace names, that's allowed.
thanks,
greg k-h
next prev parent reply other threads:[~2004-11-03 23:19 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-03 22:35 patch for sysfs in the cyclades driver Kilau, Scott
2004-11-03 23:08 ` Greg KH [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-11-04 17:50 Kilau, Scott
2004-11-04 18:28 ` Germano
2004-11-04 16:40 Kilau, Scott
2004-11-04 17:39 ` Greg KH
2004-11-03 20:20 Kilau, Scott
2004-11-03 21:23 ` Greg KH
2004-11-03 19:55 Kilau, Scott
2004-11-03 20:03 ` Greg KH
2004-11-03 13:09 Germano
2004-11-04 10:25 ` Marcelo Tosatti
2004-11-04 16:58 ` Roland Dreier
2004-11-04 14:29 ` Marcelo Tosatti
2004-11-04 17:40 ` Roland Dreier
2004-11-04 17:44 ` Greg KH
2004-11-04 17:42 ` Greg KH
2004-11-04 17:40 ` Greg KH
2004-11-04 19:05 ` Roland Dreier
2004-11-04 19:17 ` Greg KH
[not found] <71A17D6448EC0140B44BCEB8CD0DA36E04B9D812@minimail.digi.com>
2004-11-03 2:28 ` Greg KH
2004-10-28 18:56 Germano Barreiro
2004-10-30 4:40 ` Greg KH
2004-11-01 17:01 ` germano.barreiro
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=20041103230826.GA31333@kroah.com \
--to=greg@kroah.com \
--cc=Scott_Kilau@digi.com \
--cc=germano.barreiro@cyclades.com \
--cc=linux-kernel@vger.kernel.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.