2009/4/23 Johannes Hofmann <[email protected]>: > 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
