KLM unloading on error

John Baldwin jhb at freebsd.org
Tue Apr 13 13:51:01 UTC 2010


On Tuesday 13 April 2010 6:45:58 am 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?

Hmm, that does seem like a bug.

-- 
John Baldwin


More information about the freebsd-hackers mailing list