Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Apr 2010 17:56:37 -0700
From:      Patrick Mahan <mahan@mahan.org>
To:        freebsd-hackers@freebsd.org
Subject:   KLM unloading on error
Message-ID:  <4BC3C145.3080206@mahan.org>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BC3C145.3080206>