From owner-freebsd-current@FreeBSD.ORG Mon Jul 14 00:17:01 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E117C37B401; Mon, 14 Jul 2003 00:17:01 -0700 (PDT) Received: from mail.cyberonic.com (mail.cyberonic.com [4.17.179.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0ABB443F85; Mon, 14 Jul 2003 00:17:01 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (node-40244c0a.sfo.onnet.us.uu.net [64.36.76.10]) by mail.cyberonic.com (8.12.8/8.12.5) with ESMTP id h6E7hoca018878; Mon, 14 Jul 2003 03:44:02 -0400 Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.9/8.11.6) id h6E5lCDX004573; Sun, 13 Jul 2003 22:47:12 -0700 (PDT) (envelope-from jmg) Date: Sun, 13 Jul 2003 22:47:12 -0700 From: John-Mark Gurney To: David Yeske Message-ID: <20030714054712.GR35337@funkthat.com> Mail-Followup-To: David Yeske , current@freebsd.org, phk@freebsd.org, scottl@freebsd.org References: <20030714022159.74573.qmail@web13505.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030714022159.74573.qmail@web13505.mail.yahoo.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: current@freebsd.org Subject: Re: fla.ko X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 07:17:02 -0000 David Yeske wrote this message on Sun, Jul 13, 2003 at 19:21 -0700: > I'm wondering what needs to be done to make the "fla" device into a kernel module. > I made modules/fla/Makefile, but I am not sure what else needs to be done. > It looks like you can't kldunload it after you kldload it... You need to add a method to detach the device: /* Device interface */ DEVMETHOD(device_probe, flaprobe), DEVMETHOD(device_attach, flaattach), there needs to be a device_detach line here. Look at other drivers on how to add this. One the detach can be successfully called, kldunload should then start working. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."