From owner-freebsd-current Sun Jul 7 23:24:31 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 630E337B400 for ; Sun, 7 Jul 2002 23:24:29 -0700 (PDT) Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8730B43E42 for ; Sun, 7 Jul 2002 23:24:28 -0700 (PDT) (envelope-from imp@village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id g686ORY65295; Mon, 8 Jul 2002 00:24:27 -0600 (MDT) (envelope-from imp@village.org) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id g686OQG95440; Mon, 8 Jul 2002 00:24:26 -0600 (MDT) (envelope-from imp@village.org) Date: Mon, 08 Jul 2002 00:24:16 -0600 (MDT) Message-Id: <20020708.002416.130619382.imp@village.org> To: nate@root.org Cc: current@FreeBSD.ORG Subject: Re: dev_t semantics From: "M. Warner Losh" In-Reply-To: References: X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: Nate Lawson 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