/sys/doc/ Documentation archive

Adding a System Call to Plan 9

By: John Floren (Sandia National Laboratories, Livermore)

The process for adding a new system call to Plan 9 is rather simple. For this example, a “kernel getpid ” function will be added, mirroring the functionality of the getpid() function, but using a system call rather than a libc function.