[Differential] [Request, 471 lines] D1882: Add macros to make code compile in kernel
rstone (Ryan Stone)
phabric-noreply at FreeBSD.org
Tue Feb 17 17:45:34 UTC 2015
rstone created this revision.
rstone added a reviewer: jfvogel.
rstone added subscribers: pjd, freebsd-net.
REVISION SUMMARY
Make it possible to compile libnv in the kernel. Mostly this
involves wrapping functions that have a different signature in
the kernel and in userland (e.g. malloc()) in a macro that will
conditionally expand to the right API depending on whether the
code is being compiled for the kernel or not.
I have also #ifdef'ed out all of file descriptor-handling code,
as well as the unsafe varargs functions.
REVISION DETAIL
https://reviews.freebsd.org/D1882
AFFECTED FILES
lib/libnv/dnv.h
lib/libnv/dnvlist.c
lib/libnv/nv.h
lib/libnv/nv_impl.h
lib/libnv/nvlist.c
lib/libnv/nvlist_impl.h
lib/libnv/nvpair.c
lib/libnv/nvpair_impl.h
To: rstone, jfvogel
Cc: freebsd-net, pjd
More information about the freebsd-net
mailing list