Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jul 2020 17:44:16 +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@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 248050
           Summary: Keeps handle to loaded kernel module twice?
           Product: Base System
           Version: 12.1-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: dmilith@me.com

Basically:

kldstat | grep -c dtrace # returns "0", no kernel modules loaded yet
kldload dtrace # ok
kldload dtraceall # ok
kldstat | grep -c dtrace # returns "2" - two matching kernel modules loaded=
 -
all ok.


And here's the issue:

kldunload dtrace # ok - shouldn't be ok. dtrace module is still loaded at t=
his
point but command returns 0 - success
kldstat | grep -c dtrace # returns "2" again.

kldunload dtrace # causes (expected) fail:

kldunload: can't unload file: Device busy

--=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>