ABI change in libkvm (kvm_uread removal)

Mikolaj Golub to.my.trociny at gmail.com
Wed Jul 10 06:34:13 UTC 2013


On Tue, Jul 09, 2013 at 11:16:57PM +0200, Jilles Tjoelker wrote:
> On Tue, Jul 09, 2013 at 09:59:19PM +0300, Mikolaj Golub wrote:
> > Suggestions how this should be fixed properly (if possible) are highly
> > appreciated. I will do what people suggest.
> 
> I would suggest bringing back kvm_uread() in stable/9 so that the ABI is
> kept. In head, I suggest removing kvm_uread() from the header file and
> bumping the soname. I think MFCing the soname bump will cause more
> annoyance than the removal of kvm_uread() itself.
> 
> Much of the code using libkvm uses it to access kernel internals, which
> are not a proper ABI/API and change fairly frequently. Therefore, it is
> probably acceptable for this library not to use symbol versioning.
> 
> The functions that do not expose the caller to kernel internals like
> kvm_getprocs() should probably not be used; instead, libprocstat
> provides a more ABI-stable way to do the same. Calling the sysctls
> directly is also an option.

Thank you all for your suggestions. I like Jilles' the most. So I am
going to return kvm_uread back to stable/9 by a direct commit and
remove it entirely from head and bump soname.

-- 
Mikolaj Golub
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libkvm.kvm_uread.all.1.patch
Type: text/x-diff
Size: 2792 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20130710/bd997a4c/attachment.patch>


More information about the freebsd-arch mailing list