state              43 printf.c         int c, i, state;
state              46 printf.c         state = 0;
state              50 printf.c           if(state == 0){
state              52 printf.c               state = '%';
state              56 printf.c           } else if(state == '%'){
state              82 printf.c             state = 0;
state              82 proc.c             if(p->state == UNUSED)
state              89 proc.c           p->state = EMBRYO;
state              96 proc.c             p->state = UNUSED;
state             151 proc.c           p->state = RUNNABLE;
state             196 proc.c             np->state = UNUSED;
state             217 proc.c           np->state = RUNNABLE;
state             259 proc.c               if(p->state == ZOMBIE)
state             265 proc.c           curproc->state = ZOMBIE;
state             287 proc.c               if(p->state == ZOMBIE){
state             297 proc.c                 p->state = UNUSED;
state             336 proc.c               if(p->state != RUNNABLE)
state             344 proc.c               p->state = RUNNING;
state             375 proc.c           if(p->state == RUNNING)
state             389 proc.c           myproc()->state = RUNNABLE;
state             440 proc.c           p->state = SLEEPING;
state             463 proc.c             if(p->state == SLEEPING && p->chan == chan)
state             464 proc.c               p->state = RUNNABLE;
state             489 proc.c               if(p->state == SLEEPING)
state             490 proc.c                 p->state = RUNNABLE;
state             516 proc.c           char *state;
state             520 proc.c             if(p->state == UNUSED)
state             522 proc.c             if(p->state >= 0 && p->state < NELEM(states) && states[p->state])
state             523 proc.c               state = states[p->state];
state             525 proc.c               state = "???";
state             526 proc.c             cprintf("%d %s %s", p->pid, state, p->name);
state             527 proc.c             if(p->state == SLEEPING){
state              42 proc.h           enum procstate state;        // Process state
state             105 trap.c           if(myproc() && myproc()->state == RUNNING &&