Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Apr 1997 16:29:05 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, msmith@atrad.adelaide.edu.au
Cc:        hackers@freebsd.org
Subject:   Re: Unloading LKMs (was Re: A Desparate Plea for Help...)
Message-ID:  <199704300629.QAA08621@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> to garbage).  Unloading followed by reloading obviously can't work,
>> because the driver only initializes the devsw once.
>
>Um, the driver initialises the devsw on every load, does it not?  eg: 
>
>static int 
>qcam_load (struct lkm_table *lkmtp, int cmd)
>{
>        if (qcam_probe(&qcam_mod_dev)) {
>                qcam_attach(&qcam_mod_dev);
>
>                qcam_drvinit(NULL); /* XXX this shouldn't NEED to be here
>                                     * the LKM code should be doing this
>                                     * for us! */
>...

Oops.  The only related problem for loading is that errors for initializing
the devsw slot are ignored.

Bruce



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