DragonFly users List (threaded) for 2009-04
DragonFly BSD
DragonFly users List (threaded) for 2009-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: KQEMU 1.4.0pre1 for QEMU 0.10.1


From: Stathis Kamperis <ekamperi@xxxxxxxxx>
Date: Thu, 23 Apr 2009 15:06:32 +0300

2009/4/23 Johannes Hofmann <johannes.hofmann@gmx.de>:
> When unloading kqemu.ko I get:
> destroy_dev(): too few references on device! 0xc33746d8
> kqemu(minor=00000000) refs=1
>
> A subsequent kldload ./kqemu.ko panics the system with
> assertion: sr->refcnt == 0 in sysref_alloc

When you create a device and plan to destroy it later on, you have to
take a reference on it.
See DEV_MODULE(9) for an example and make_dev(9).

Thanks!

Cheers,
Stathis



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]