I've recently written a short document on the process of adding a new system call to Plan 9. In anticipation of numerous attacks on my intelligence and the inevitable questioning of the legitimacy of my parentage, no, I do not endorse the reckless addition of system calls. I most definitely do not suggest that "kgetpid" should actually go into the kernel; it's purely an example, one that requires very little code to implement.
The paper is in /n/sources/contrib/john/syscall.ps or, for you fakers who don't have Plan 9 boxes, http://cm.bell-labs.com/sources/contrib/john/syscall.ps Comments and corrections are welcome; flames about how I have lost the way will be mocked. John
