add error message for vkernel started with vm.vkernel_enable=0

Matthew Dillon dillon at
Thu Jul 19 10:20:53 PDT 2007

:I'd like to add something like the attached patch to the vkernel to
:let the user know that vm.vkernel_enable = 0.  I spent quite a while
:today chasing down why mmap() was failing before remembering that I
:needed to turn vm.vkernel_enable on.

    That's fine, but adjust the sysctl to only read the variable, not
    set it also (pass NULL for the newp argument to sysctlbyname).


More information about the Kernel mailing list