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)
Feb 4 2024, 5:34 AM
Unknown Object (File)
Dec 20 2023, 12:45 AM
Unknown Object (File)
Dec 14 2023, 8:09 PM
Unknown Object (File)
Oct 6 2023, 1:31 PM
Unknown Object (File)
Aug 26 2023, 10:03 AM
Unknown Object (File)
Jul 5 2023, 1:09 PM
Unknown Object (File)
Mar 4 2023, 12:03 AM
Unknown Object (File)
Feb 4 2023, 8: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
No Lint Coverage
Unit
No Test Coverage

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).