KLM unloading on error

Andrey V. Elsukov bu7cher at yandex.ru
Tue Apr 13 10:46:02 UTC 2010


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?

-- 
WBR, Andrey V. Elsukov


More information about the freebsd-hackers mailing list