From owner-freebsd-stable Sat Oct 21 3:32:46 2000 Delivered-To: freebsd-stable@freebsd.org Received: from midget.dons.net.au (daniel.lnk.telstra.net [139.130.137.70]) by hub.freebsd.org (Postfix) with ESMTP id 5CAE137B4C5 for ; Sat, 21 Oct 2000 03:32:41 -0700 (PDT) Received: from cain.gsoft.com.au (guppy.dons.net.au [203.31.81.9]) by midget.dons.net.au (8.9.3/8.9.3) with ESMTP id UAA10591; Sat, 21 Oct 2000 20:02:24 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20001021120742.A396@lpthe.jussieu.fr> Date: Sat, 21 Oct 2000 20:02:15 +0930 (CST) From: "Daniel O'Connor" To: Michel Talon Subject: Re: Dynamically loading/unloading accept filters Cc: freebsd-stable@FreeBSD.ORG Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 21-Oct-00 Michel Talon wrote: > On Sat, Oct 21, 2000 at 02:17:42PM +0800, Yusuf Goolamabbas wrote: > > Hi, I tried the following commands today on a 4.1.1-stable box > > > > kldload accf_data > > kldstat > > kldunload accf_data > > > > The last command returns the following message. Is there any dependency > > I missed > > > > kldunload: can't unload file: Operation not supported > > > > -- > I have similar with the vpo module. > kldload vpo works and the zip works. But kldunload vpo says > kldunload: can't unload file:Device not configured. > What is this about? The vpo device has no detach method so it can't be unloaded (as far as I understand it the upper layer returns ENXIO because there is no detach method) As for accf it is a module and the handler for it doesn't support unloading. From the source (/usr/src/sys/kern/uipc_accf.c) -> case MOD_UNLOAD: /* * Do not support unloading yet. we don't keep track of refcounts * and unloading an accept filter callback and then having it called * is a bad thing. A simple fix would be to track the refcount * in the struct accept_filter. */ if (unloadable != 0) { s = splnet(); error = accept_filt_del(accfp->accf_name); splx(s); } else error = EOPNOTSUPP; break; --- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message