From owner-freebsd-smp Mon Dec 4 15:11: 5 2000 From owner-freebsd-smp@FreeBSD.ORG Mon Dec 4 15:11:03 2000 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from Awfulhak.org (tun.AwfulHak.org [194.242.139.173]) by hub.freebsd.org (Postfix) with ESMTP id 3355537B400; Mon, 4 Dec 2000 15:08:38 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.1/8.11.1) with ESMTP id eB4N5gM02573; Mon, 4 Dec 2000 23:05:42 GMT (envelope-from brian@hak.lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.1/8.11.1) with ESMTP id eB4N7gD93751; Mon, 4 Dec 2000 23:07:42 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200012042307.eB4N7gD93751@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Mike Smith Cc: Brian Somers , Julian Elischer , brian@FreeBSD.org, archie@FreeBSD.org, phk@FreeBSD.org, smp@FreeBSD.org, brian@Awfulhak.org Subject: Re: Netgraph and SMP In-Reply-To: Message from Mike Smith of "Mon, 04 Dec 2000 14:50:07 PST." <200012042250.eB4Mo7F01738@mass.osd.bsdi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 04 Dec 2000 23:07:42 +0000 From: Brian Somers 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. Is it desirable to lock up running kldunload(8) ? > -- > ... 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 -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message