Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/system/ready.c File Reference

#include <kernel.h>
#include <proc.h>
#include <queue.h>

Include dependency graph for ready.c:

Go to the source code of this file.

Functions

syscall ready (long pid, bool resch)


Detailed Description

ready

Id
ready.c 241 2007-07-13 22:24:20Z agember

Definition in file ready.c.


Function Documentation

syscall ready ( long  pid,
bool  resch 
)

Make a process eligible for CPU service.

Parameters:
pid process id of the process to move to the ready state
resch if TRUE, reschedule will be called
Returns:
OK if the process has been added to the ready list, else SYSERR

Definition at line 19 of file ready.c.

References ASSERT, insert(), isbadpid, OK, pentry::prio, proctab, PRREADY, readylist, resched(), and pentry::state.

Referenced by freesem(), main(), nulluser(), send(), shell(), signal(), signaln(), test_bigargs(), test_recursion(), test_schedule(), test_semaphore(), test_semaphore2(), test_semaphore3(), test_semaphore4(), testItem(), and wakeup().


Generated on Thu Oct 9 22:35:10 2008 for xinu by  doxygen 1.5.5