From owner-freebsd-smp Mon Dec 4 14:41:28 2000 From owner-freebsd-smp@FreeBSD.ORG Mon Dec 4 14:41:25 2000 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-176-64.dsl.snfc21.pacbell.net [63.202.176.64]) by hub.freebsd.org (Postfix) with ESMTP id 9694737B401; Mon, 4 Dec 2000 14:41:24 -0800 (PST) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.11.0/8.11.1) with ESMTP id eB4Mo7F01738; Mon, 4 Dec 2000 14:50:08 -0800 (PST) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200012042250.eB4Mo7F01738@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Brian Somers Cc: Julian Elischer , brian@FreeBSD.org, archie@FreeBSD.org, phk@FreeBSD.org, smp@FreeBSD.org Subject: Re: Netgraph and SMP In-reply-to: Your message of "Mon, 04 Dec 2000 22:31:36 GMT." <200012042231.eB4MVaD93192@hak.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 04 Dec 2000 14:50:07 -0800 From: Mike Smith Sender: msmith@mass.osd.bsdi.com Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > The simplest structure for this is a shared/exclusive lock > > that supports intention; Terry would have ranted about this. (He would > > have called it a SIX-lock, I think). > [.....] > > This may sound simplistic, but given that you don't necessarily make > > changes to Netgraph very often, this is quite likely more than adequate > > for now. > > Nice, I never realised there were shared/exclusive locks available. > I think netgraph nodes would also need to have a ``modevent'' that > fails MOD_UNLOAD events if any locks are outstanding. Er, no, you just have to acquire the exclusive lock in the MOD_UNLOAD handler. As for the actual availibility of SIX-style locks; I'm fairly sure you can do this with the lockmgr. -- ... 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 tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message