Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jan 2004 17:31:37 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        des@des.no
Cc:        mobile@freebsd.org
Subject:   Re: cvs commit: src/sys/dev/kbd kbd.c
Message-ID:  <20040127.173137.111169763.imp@bsdimp.com>
In-Reply-To: <xzpd6958k3t.fsf@dwp.des.no>
References:  <200401271540.i0RFeUfB017996@repoman.freebsd.org> <xzpd6958k3t.fsf@dwp.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <xzpd6958k3t.fsf@dwp.des.no>
            des@des.no (Dag-Erling Sm=F8rgrav) writes:
: Dag-Erling Smorgrav <des@FreeBSD.org> writes:
: > des         2004/01/27 07:40:30 PST
: >
: >   FreeBSD src repository
: >
: >   Modified files:
: >     sys/dev/kbd          kbd.c =

: >   Log:
: >   While USB keyboards attach as ukbd[0-9]+, the device node created=
 by
: >   kbd_attach() is called kbd[0-9]+, with a different unit number.  =
This
: >   makes it impossible to write a devd rule which will automatically=

: >   switch to a USB keyboard when one is attached, because there is n=
o way
: >   to guess the correct device node to pass to kbdcontrol.
: >   =

: >   Therefore, change kbd_attach() to create a device node using the
: >   keyboard device's real name (atkbd0, ukbd0...), and create the
: >   kbd[0-9]+ node as an alias for backward compatibility.
: >   =

: >   Revision  Changes    Path
: >   1.37      +2 -1      src/sys/dev/kbd/kbd.c

Just so you know, devd deals with device_t's, not dev_t's.  This
merely makes the two create nodes in the same namespace.  That's
likely a good thing.

Warner



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