Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jul 2003 22:47:12 -0700
From:      John-Mark Gurney <gurney_j@efn.org>
To:        David Yeske <dyeske@yahoo.com>
Cc:        current@freebsd.org
Subject:   Re: fla.ko
Message-ID:  <20030714054712.GR35337@funkthat.com>
In-Reply-To: <20030714022159.74573.qmail@web13505.mail.yahoo.com>
References:  <20030714022159.74573.qmail@web13505.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030714054712.GR35337>