Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Feb 2003 21:08:37 -0500 (EST)
From:      "Matthew N. Dodd" <winter@jurai.net>
To:        Sam Leffler <sam@errno.com>
Cc:        Maxime Henrion <mux@FreeBSD.org>, src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/pci if_xl.c
Message-ID:  <20030219210447.V66355@sasami.jurai.net>
In-Reply-To: <0b4101c2d864$49cbafd0$52557f42@errno.com>
References:  <200302191833.h1JIXT2d013173@repoman.freebsd.org> <0b4101c2d864$49cbafd0$52557f42@errno.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 19 Feb 2003, Sam Leffler wrote:
> When I did the struct ifnet fixups I almost changed if_init from void to
> int to return an error code.  Maybe it's not too late to do this before
> the REELNG_5 branch?

If if_init() fails then the interface does not have the IFF_RUNNING flag
set.

If things like the ioctl path need to return a status they can use
tsleep() to wait for the adapter to actually come up.  This can deal with
the adapter going out to lunch or any other failure one might encounter.

-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| winter@jurai.net |       2 x '84 Volvo 245DL        | ix86,sparc,pmax |
| http://www.jurai.net/~winter |  For Great Justice!  | ISO8802.5 4ever |

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?20030219210447.V66355>