svrctl(2)


NAME
     svrctl - special server control functions

SYNOPSIS
     #include <sys/svrctl.h>

     int svrctl(u32_t request, void *data);

DESCRIPTION
     Svrctl allows root to control the kernel in various  ways.   This  system
     call  makes  it  easy  to  add  new  ways  of  setting and getting kernel
     parameters,  but  at  the  same  time,  backwards  compatibility  is  not
     guaranteed.   Read  the  <sys/svrctl.h>  include  file  to  see  what the
     struct's mentioned below look like.

     Current requests are:

     MMGEXECCACHE
          Get the exec cache limit and usage in a struct mmexeccache

     MMSEXECCACHE
          Set the exec cache limit from a struct mmexeccache

     MMQUERYPARAM
          Get some of MMs internal state.

     MMSIGNON
          Inform MM that the current process wants to become a server.

     FSQUERYPARAM
          Get some of FSes internal state.

     FSSIGNON
          Register a new device with FS.

     FSGPIPEFS
          Get the device number of the file system  used  to  hold  pipes  and
          buffered pipe data.

     FSSPIPEFS
          Set the file system used for pipes.

     FSDEVMAP
          Translate a device number to a task number, minor device pair  using
          a struct fsdevmap

     SYSQUERYPARAM
          Get some of kernels internal state.


     SYSSIGNON
          Inform the kernel that the process want to  become  a  server.   The
          processes task number is filled-in in a struct systaskinfo.

     SYSREQIRQ
          Ask the kernel to send an SIGINT or  an  INTERRUPT  message  when  a
          certain hardware interrupt occurs.

RETURN VALUES
     Svrctl returns 0 upon success and -1 upon failure.

AUTHOR
     Philip Homburg <philip@cs.vu.nl>