[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
kldunload DIAGNOSTIC idea...
- Subject: kldunload DIAGNOSTIC idea...
- From: green at freebsd.org (Brian Fundakowski Feldman)
- Date: Tue Jul 20 11:33:18 2004
On Tue, Jul 20, 2004 at 08:20:23PM +0200, Poul-Henning Kamp wrote:
>
> I'm pulling hair out trying to make it guaranteed safe to unload device
> driver modules, and the major pain here is to make sure there is no
> thread stuck somewhere inside the code.
>
> That gave me the idea for a simple little DIAGNOSTIC check for kldunload:
> run through the proc/thread table and look for any thread with an
> instruction counter inside the range of pages we are going to unload.
>
> Any takers ?
You mean any thread with a stack trace that includes an instruction
counter inside those pages, don't you?
--
Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\
<> green_(_at_)_FreeBSD_(_dot_)_org \ The Power to Serve! \
Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
Visit your host, monkey.org