Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Nov 2002 04:22:33 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        myevmenk@exodus.net, current@FreeBSD.ORG, net@FreeBSD.ORG
Subject:   Re: Netgraph and KQUEUE(2)
Message-ID:  <20021106.042233.54624374.imp@bsdimp.com>
In-Reply-To: <Pine.BSF.4.21.0211051319480.69864-100000@InterJet.elischer.org>
References:  <3DC82EB5.7974429D@exodus.net> <Pine.BSF.4.21.0211051319480.69864-100000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
: 1) Device driver in Netgraph node. When hardware is
:    activated new Netgraph node is created and new
:    kevent sent. devd (or something like devd) listens
:    for these events and does something (loads firmware,
:    activates device, etc.)

Device drivers are not netgraph nodes.  They will have a device_t
associated with them, which already sends a message via /dev/devctl to
devd.  You can do anything you want with the results.  There's no need
to reinvent the wheel that I'm almost done inventing.  There's
absolutely no need to bring netgraph into it all, and doing so makes
it a less generic implementation.

Warner

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




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