sysproc.c
//return number of pages used by process
return number of pages used by process
return number of pages used by process
int sys_num_pages(void){
  int num_pages;
  num_pages = myproc()->sz/PGSIZE;
  return num_pages;
}
int sys_num_pages ( void ) { int num_pages ; num_pages = myproc ( ) -> sz / PGSIZE ; return num_pages ; }
return number of pages used by process
return number of pages used by process