KLM unloading on error

Patrick Mahan mahan at mahan.org
Tue Apr 13 01:12:11 UTC 2010


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


More information about the freebsd-hackers mailing list