Page MenuHomeFreeBSD

Add macros to make code compile in kernel

Authored by rstone on Feb 17 2015, 5:45 PM.
Referenced Files
Unknown Object (File)
Sat, Feb 4, 8:04 PM
Unknown Object (File)
Jan 3 2023, 8:30 AM
Unknown Object (File)
Apr 22 2017, 5:43 PM
Unknown Object (File)
Apr 20 2017, 7:14 PM
Unknown Object (File)
Apr 5 2017, 4:40 PM
Unknown Object (File)
Apr 3 2017, 4:21 PM
Unknown Object (File)
Mar 12 2017, 5:07 AM
Unknown Object (File)
Mar 8 2017, 2:50 PM



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.

Diff Detail

rS FreeBSD src repository - subversion
Lint Skipped
Tests Skipped

Event Timeline

rstone retitled this revision from to Add macros to make code compile in kernel.
rstone edited the test plan for this revision. (Show Details)
rstone added a reviewer: jfv.
rstone updated this object.
rstone added subscribers: pjd, Unknown Object (MLST).
jfv edited edge metadata.
This revision is now accepted and ready to land.Feb 18 2015, 10:29 PM
rstone updated this revision to Diff 4041.

Closed by commit rS279438 (authored by @rstone).