Date: Thu, 21 Jan 1999 22:34:44 -0800 (PST) From: Archie Cobbs <archie@whistle.com> To: dfr@nlsystems.com (Doug Rabson) Cc: freebsd-hackers@FreeBSD.ORG, julian@whistle.com Subject: Re: Loading KLD from the kernel Message-ID: <199901220634.WAA10001@bubba.whistle.com> In-Reply-To: <Pine.BSF.4.01.9901190915370.40696-100000@herring.nlsystems.com> from Doug Rabson at "Jan 19, 99 09:21:18 am"
next in thread | previous in thread | raw e-mail | index | archive | help
Doug Rabson writes: > > I tried simply incrementing lf->userrefs after loading the module > > from the kernel, but somehow it went back to zero (?) > > This field is a count of how many times a user has loaded the file using > kldload(2). It is there to prevent a user from unloading a file which was > loaded explicitly by the kernel (e.g. as a dependancy). Incrementing > userrefs should have worked though - can you watch what happens in the > debugger and find out why it is being reset? Well, now it seems to work.. Nevermind :-) -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901220634.WAA10001>