From owner-cvs-all Tue Jan 22 1: 1:38 2002 Delivered-To: cvs-all@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id C66A637B402; Tue, 22 Jan 2002 01:01:06 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g0M90XW82562; Tue, 22 Jan 2002 11:00:33 +0200 (EET) (envelope-from ru) Date: Tue, 22 Jan 2002 11:00:33 +0200 From: Ruslan Ermilov To: Dag-Erling Smorgrav Cc: "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 Message-ID: <20020122110033.D78733@sunbay.com> References: <20020121103822.A16527@sunbay.com> <20020121173406.A77567@sunbay.com> <20020121.085527.98102760.imp@village.org> <20020121183947.A83821@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i 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 On Mon, Jan 21, 2002 at 10:08:46PM +0100, Dag-Erling Smorgrav wrote: > Ruslan Ermilov writes: > > I've looked at several device drivers, and some get asynchronous > > notifications about media status changes (like ti(4)), and some > > don't (like dc(4) using dcphy_status() through mii_pollstat()). > > This means that the only reliable way is to periodically query > > the driver about media status changes through the SIOCGIFMEDIA > > ioctl. > > 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? Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message