Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jul 2020 15:09:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 248050] Keeps handle to loaded kernel module twice?
Message-ID:  <bug-248050-227-3vWJADlbBT@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-248050-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-248050-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248050

Mark Johnston <markj@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markj@FreeBSD.org
             Status|New                         |Closed
         Resolution|---                         |Not A Bug

--- Comment #2 from Mark Johnston <markj@FreeBSD.org> ---
This is by design, though the behaviour is admittedly not intuitive.  When =
you
kldload dtrace, dtrace.ko gets a reference; loading dtraceall.ko adds a sec=
ond
reference to dtrace.ko.

The first attempt to unload dtrace releases the initial reference, but
dtraceall.ko's reference ensures that dtrace.ko remains loaded.  The second
attempt to unload fails because dtraceall.ko still depends on dtrace.ko.=20
Unloading dtraceall.ko should cause dtrace.ko to be unloaded automatically =
in
that case.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248050-227-3vWJADlbBT>