Page MenuHomeFreeBSD

Add macros to make code compile in kernel
ClosedPublic

Authored by rstone on Feb 17 2015, 5:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 11, 3:33 AM
Unknown Object (File)
Fri, Nov 29, 6:06 PM
Unknown Object (File)
Fri, Nov 29, 6:06 PM
Unknown Object (File)
Nov 12 2024, 8:52 PM
Unknown Object (File)
Nov 1 2024, 5:27 PM
Unknown Object (File)
Nov 1 2024, 5:27 PM
Unknown Object (File)
Nov 1 2024, 5:27 PM
Unknown Object (File)
Sep 27 2024, 10:04 PM

Details

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.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
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).