Date: Mon, 08 Jul 2002 00:24:16 -0600 (MDT) From: "M. Warner Losh" <imp@village.org> To: nate@root.org Cc: current@FreeBSD.ORG Subject: Re: dev_t semantics Message-ID: <20020708.002416.130619382.imp@village.org> In-Reply-To: <Pine.BSF.4.21.0207072008110.36901-100000@root.org> References: <Pine.BSF.4.21.0207072008110.36901-100000@root.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <Pine.BSF.4.21.0207072008110.36901-100000@root.org> Nate Lawson <nate@root.org> writes: : I am using dev->si_drv1 to store my softc (as are other drivers). What : guarantees do I have about multiple opens/closes not stepping on each : other's toes? How does -stable compare to -current in this regard? You don't have any guarantees. si_drv1 is for each dev_t. Multiple opens of the same minor device share the same dev_t. Stable and current are exactly the same in this reguard. You cannot easily have the semantics that you want :-( 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?20020708.002416.130619382.imp>