From owner-freebsd-arch@FreeBSD.ORG Fri Jul 9 11:11:37 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BF5916A4CE for ; Fri, 9 Jul 2004 11:11:37 +0000 (GMT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D4DB43D1F for ; Fri, 9 Jul 2004 11:11:36 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.11/8.12.11) with ESMTP id i69BAeW6020537; Fri, 9 Jul 2004 13:10:40 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Brian Somers From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 09 Jul 2004 11:58:58 BST." <20040709115858.47efb729@dev.lan.Awfulhak.org> Date: Fri, 09 Jul 2004 13:10:40 +0200 Message-ID: <20536.1089371440@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: arch@freebsd.org Subject: Re: [RFC] kldunload -f argument. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2004 11:11:37 -0000 In message <20040709115858.47efb729@dev.lan.Awfulhak.org>, Brian Somers writes: >> >The idea is that the user can be more active in getting rid of the active >> >module by QUIESCEing it, then running around murdering processes before >> >unloading it. >> >> I could maybe see a point in this but I cannot remember one single instance >> where I would have actually done this myself. > >I guess if_tun.ko springs to mind. I can reliably unload it if I quiesce it, >kill all the ``Opened by PID N'' processes, then unload it. Yeah, that would be somewhat similar to the geom case I guess. I'll give kldunload a -q option too. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.