From f8da2af3e7019254a6f98a23f22726a7f9dfb372 Mon Sep 17 00:00:00 2001 From: Remzi Arpaci-Dusseau Date: Wed, 28 Feb 2018 19:07:54 -0600 Subject: [PATCH] Clarify return code on getpinfo() --- scheduling-xv6-lottery/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scheduling-xv6-lottery/README.md b/scheduling-xv6-lottery/README.md index ce6ca7d..d247208 100644 --- a/scheduling-xv6-lottery/README.md +++ b/scheduling-xv6-lottery/README.md @@ -32,7 +32,9 @@ information about all running processes, including how many times each has been chosen to run and the process ID of each. You can use this system call to build a variant of the command line program `ps`, which can then be called to see what is going on. The structure `pstat` is defined below; note, you cannot -change this structure, and must use it exactly as is. +change this structure, and must use it exactly as is. This routine should +return 0 if successful, and -1 otherwise (if, for example, a bad or NULL +pointer is passed into the kernel). Most of the code for the scheduler is quite localized and can be found in `proc.c`; the associated header file, `proc.h` is also quite useful to