Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Jun 2004 12:31:01 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        danfe@nsu.ru
Cc:        phk@phk.freebsd.dk
Subject:   Re: dev_t / udev_t confusion ?
Message-ID:  <20040609.123101.08394961.imp@bsdimp.com>
In-Reply-To: <20040609142911.GA43972@regency.nsu.ru>
References:  <53993.1086779790@critter.freebsd.dk> <20040609142911.GA43972@regency.nsu.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20040609142911.GA43972@regency.nsu.ru>
            Alexey Dokuchaev <danfe@nsu.ru> writes:
: On Wed, Jun 09, 2004 at 01:16:30PM +0200, Poul-Henning Kamp wrote:
: > 
: > I have an item on my TODO list which says "fix dev_t / udev_t kernel
: > confusion before 5-STABLE ?".
: > 
: > The confusions is that in userland dev_t is an integer type which
: > encodes the major+minor number of a device, in the kernel it it a
: > pointer to "struct cdev" which represents the device to the kernel.
: 
: Go for solving the confusion, phk.  I'd sacrifice compatibility with
: other BSDs here in sake of coherency.

Actually, this makes us more compatible with other BSDs.  They never
went down this path.

However, it does add costs to those companies (like the one I work
for) that have to have drivers for both 4.x and 5.x.  These costs can
be managed, but it is a bit of a pain.  Luckily for me, it looks like
the conversion cost of other parts of the driver is high in comparison
to this change, which incrementally increases it.

I'm not sure that I like the churn this causes, but I'm not going to
fight it.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040609.123101.08394961.imp>