Exemplo n.º 1
0
/*===========================================================================*
 *				image_dmp				     *
 *===========================================================================*/
void image_dmp()
{
  int m, r;
  struct boot_image *ip;
	
  if ((r = sys_getimage(image)) != 0) {
      report("IS","warning: couldn't get copy of image table", r);
      return;
  }
  printk("Image table dump showing all processes included in system image.\n");
  printk("---name- -nr- ----pc- flags -qs- -queue- -stack-\n");
  for (m=0; m<NR_BOOT_PROCS; m++) { 
      ip = &image[m];
      printk("%8s %4d %7lu %5s %4d %7d %7lu\n",
          ip->proc_name, ip->proc_nr, (long)ip->initial_pc,
          boot_flags_str(ip->flags), ip->quantum, ip->priority, ip->stksize); 
  }
  printk("\n");
}
Exemplo n.º 2
0
/*===========================================================================*
 *				image_dmp				     *
 *===========================================================================*/
PUBLIC void image_dmp()
{
  int m, r;
  struct boot_image *ip;
	
  if ((r = sys_getimage(image)) != OK) {
      printf("IS: warning: couldn't get copy of image table: %d\n", r);
      return;
  }
  printf("Image table dump showing all processes included in system image.\n");
  printf("---name- -nr- flags -stack-\n");
  for (m=0; m<NR_BOOT_PROCS; m++) { 
      ip = &image[m];
      printf("%8s %4d %5s\n",
          ip->proc_name, ip->proc_nr,
          boot_flags_str(ip->flags));
  }
  printf("\n");
}