From owner-freebsd-hackers Wed Apr 30 19:45:01 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA01706 for hackers-outgoing; Wed, 30 Apr 1997 19:45:01 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA01635 for ; Wed, 30 Apr 1997 19:44:53 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.50]) by who.cdrom.com (8.8.5/8.6.11) with SMTP id LAA06902 for ; Wed, 30 Apr 1997 11:42:31 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA02469; Wed, 30 Apr 1997 11:41:13 -0700 From: Terry Lambert Message-Id: <199704301841.LAA02469@phaeton.artisoft.com> Subject: Re: Unloading LKMs (was Re: A Desparate Plea for Help...) To: avalon@coombs.anu.edu.au (Darren Reed) Date: Wed, 30 Apr 1997 11:41:13 -0700 (MST) Cc: msmith@atrad.adelaide.edu.au, bde@zeta.org.au, hackers@freebsd.org In-Reply-To: <199704300708.AAA10789@hub.freebsd.org> from "Darren Reed" at Apr 30, 97 05:07:10 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Hmmm, IP Filter unloads and reloads easily enough. > > However, give some thought to a process which is in a kernel sleep state, > inside the LKM and theLKM is removed, leaving the process still sleeping > on a now invalid address. There is a place in the instance structure for entrancy counting for delayed unload. The system call sample I originally sent with the LKM code demonstrated its use. The problem with devices is that they don't get open/close notification, which was something PHK wanted for quite some time, so entrancy counting isn't really something youy can do anything about. As far as generalization of the network protocols, and so on, there is still not a registration/deregistration mechanism supported "down there" (this is something I wanted when the "stale" networking code was ripped bodily from the bosom of the kernel...). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.