KQEMU 1.4.0pre1 for QEMU 0.10.1

Stathis Kamperis ekamperi at gmail.com
Thu Apr 23 05:12:27 PDT 2009


2009/4/23 Johannes Hofmann <johannes.hofmann at 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





More information about the Users mailing list