Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Oct 2001 14:36:05 -0500
From:      Jonathan Lemon <jlemon@flugsvamp.com>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        Jonathan Lemon <jlemon@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern kern_conf.c src/sys/sys conf.h
Message-ID:  <20011017143605.O75389@prism.flugsvamp.com>
In-Reply-To: <40829.1003346384@critter.freebsd.dk>
References:  <200110171847.f9HIlCa70666@freefall.freebsd.org> <40829.1003346384@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 17, 2001 at 09:19:44PM +0200, Poul-Henning Kamp wrote:
> In message <200110171847.f9HIlCa70666@freefall.freebsd.org>, Jonathan Lemon wri
> tes:
> >jlemon      2001/10/17 11:47:12 PDT
> >
> >  Modified files:
> >    sys/kern             kern_conf.c 
> >    sys/sys              conf.h 
> >  Log:
> >  Add dev_named(dev, name), which is similar in spirit to devtoname().
> >  This function returns success if the device is known by either 'name'
> >  or any of its aliases.
> 
> Could you explain what you need this for ?

Device aliases.  E.g.: (/dev/net3 -> /dev/net/fxp0)

Unfortunately, name lookups are currently done by passing the name
into the kernel, and then comparing it to every entry in the ifnet
list.  So what I need to do is walk down the si_children list and look
at their names as well.

It would be cleaner if this parsing was done by devfs, and the device
was referenced by a udev_t (or similar) but that would require changing
the applications to perform the device open.
-- 
Jonathan

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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