Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Jul 2000 04:34:29 -0700
From:      Mike Smith <msmith@freebsd.org>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/sys bus.h bus_private.h src/sys/kern subr_bus.c 
Message-ID:  <200007041134.EAA02559@mass.osd.bsdi.com>
In-Reply-To: Your message of "Mon, 03 Jul 2000 16:27:59 %2B0200." <6433.962634479@critter.freebsd.dk> 

next in thread | previous in thread | raw e-mail | index | archive | help
> If I decide to implement a "persistent device" model for a removeable
> device, for instance to be able to do fall-over from one hardware
> device to another, then it doesn't work that the softc is tied to
> the newbus instance, since the drivers "logical" instance survives
> the hardware going away.

It should not.

> Example: Hot-plug.  My cPCI card fails, I pull it and plug another one
> in, I will very likely not want to loose my softc in that case.

Actually, you would very likely want to lose your softc (or at least 
rewrite it from scratch, which is the same thing), since there's no 
guarantee that the replacement device is going to be the same.

Making device substitution work at this level would generally be a Bad 
Idea; it should be done further up, outside the device driver.

> The "1-newbus-instance : 1-device-instance" assumption is a grave
> mistake, and we shall not lock our selves down in a dogmatic
> postulate about how the world is according to our perception, rather
> we need to be flexible enough to handle all the weird shit (TM)
> out there.

This much is fair - I think the general feeling is, however, that your 
approach to this isn't right.

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the taks and relationships force
people to take different points of view.  [Dr. Fritz Todt]




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?200007041134.EAA02559>