From owner-cvs-all Tue Jan 22 1:48: 5 2002 Delivered-To: cvs-all@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id 140C137B417; Tue, 22 Jan 2002 01:47:51 -0800 (PST) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.6/8.11.6) with ESMTP id g0M9j9U37656; Tue, 22 Jan 2002 10:45:09 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Dag-Erling Smorgrav Cc: Ruslan Ermilov , "M. Warner Losh" , rwatson@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/net if.c if.h route.h rtsock.c src/share/man/man4 route.4 src/sbin/route route.c In-Reply-To: Your message of "22 Jan 2002 10:38:58 +0100." Date: Tue, 22 Jan 2002 10:45:09 +0100 Message-ID: <37654.1011692709@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message , Dag-Erling Smorgrav writes: >Ruslan Ermilov writes: >> On Mon, Jan 21, 2002 at 10:08:46PM +0100, Dag-Erling Smorgrav wrote: >> > Could drivers that don't get asynchronous notification of media status >> > changes, poll the media status once a second? >> How this is better than polling media status of a single interested >> device from userland once a second? > >1) simpler to implement in the kernel > >2) you avoid polling devices that are capable of asynchronous > notification What really bugs me in this area is that ethernet drivers which can sense the cable being unplugged doesn't yank their routes when it happens... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message