KLM unloading on error

Patrick Mahan mahan at mahan.org
Tue Apr 13 14:11:54 UTC 2010


*smack* sorry, should have posted it.

I am running FreeBSD 8.0 Release p2 (amd64).

Thanks,

Patrick

Andrey V. Elsukov wrote:
> On 13.04.2010 4:56, Patrick Mahan wrote:
>> I have a requirement that when a KLM I am building fails during MOD_LOAD,
>> it should be unloaded. Currently, I am seeing even if I return an error
>> (eg. EINVAL or ENOSYS) the KLM is still shown as loaded (using kldstat).
>> Instead, I would like it to fail and be removed. Does FreeBSD support 
>> this?
> 
> Hi Patrick.
> 
> It seems it is bug. I have the same problem in 9-CURRENT, which FreeBSD
> version do you have?
> 


More information about the freebsd-hackers mailing list