From owner-freebsd-arch Tue Dec 14 14:32:26 1999 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id 5213915327 for ; Tue, 14 Dec 1999 14:32:23 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id XAA09326 for ; Tue, 14 Dec 1999 23:32:21 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id XAA66420 for freebsd-arch@freebsd.org; Tue, 14 Dec 1999 23:32:21 +0100 (MET) Received: from marcos.networkcs.com (marcos.networkcs.com [137.66.16.1]) by hub.freebsd.org (Postfix) with ESMTP id 4F37A152E5 for ; Tue, 14 Dec 1999 14:32:12 -0800 (PST) (envelope-from mks@us.networkcs.com) Received: from us.networkcs.com (us.networkcs.com [137.66.11.15]) by marcos.networkcs.com (8.9.3/8.9.3) with ESMTP id QAA87928; Tue, 14 Dec 1999 16:32:05 -0600 (CST) (envelope-from mks@us.networkcs.com) Received: (from mks@localhost) by us.networkcs.com (8.9.2/8.8.7) id QAA19128; Tue, 14 Dec 1999 16:32:04 -0600 (CST) From: Mike Spengler Message-Id: <199912142232.QAA19128@us.networkcs.com> Subject: Re: The if_detach problem In-Reply-To: <199912142210.PAA55577@harmony.village.org> from Warner Losh at "Dec 14, 99 03:10:13 pm" To: imp@village.org (Warner Losh) Date: Tue, 14 Dec 1999 16:32:04 -0600 (CST) Cc: jlemon@americantv.com, brian@Awfulhak.org, freebsd-arch@freebsd.org, brian@hak.lan.Awfulhak.org X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Warner Losh said: > In message <19991214160454.26093@right.PCS> Jonathan Lemon writes: > : Loadable device drivers. I ran into this last week or so when > : unloading a driver I'm developing; if I don't do an 'ifconfig xxx delete' > : before the kldunoad, I get a panic. > > That's basically what I want to do in the kernel when a driver calls > if_detach(). > The ATM code has support for detaching ATM network interfaces - it was originally written for SunOS 4.x LKMs. It is able to dynamically attach and detach interfaces via user configuration command. The code, ported to FreeBSD before if_detach() was added, is at sys/netatm/atm_if.c:atm_nif_detach(). -- Mike Spengler Network Computing Services, Inc. Email: mks@networkcs.com 1200 Washington Ave. So. Phone: +1 612 337 3557 Minneapolis MN 55415 FAX: +1 612 337 3400 (aka Minnesota Supercomputer Center) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message