KLM unloading on error

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Patrick Mahan
Date: Monday, April 12, 2010 - 5:56 pm

All,

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?

Thanks,

Patrick
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
KLM unloading on error, Patrick Mahan, (Mon Apr 12, 5:56 pm)
Re: KLM unloading on error, Andrey V. Elsukov, (Tue Apr 13, 3:45 am)
Re: KLM unloading on error, John Baldwin, (Tue Apr 13, 6:12 am)
Re: KLM unloading on error, Patrick Mahan, (Tue Apr 13, 7:11 am)