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

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

Include dependency graph for insertd.c:

Go to the source code of this file.

Functions

short insertd (short pid, queue q, short key)


Detailed Description

insertd

Id
insertd.c 240 2007-07-13 21:43:45Z brylow

Definition in file insertd.c.


Function Documentation

short insertd ( short  pid,
queue  q,
short  key 
)

Insert a process in delta queue in ascending order

Parameters:
pid process id to insert
q queue in which process should be inserted
key delta key
Returns:
OK

Definition at line 20 of file insertd.c.

References isbadpid, isbadqueue, qentry::key, qentry::next, memblock::next, OK, qentry::prev, queuehead, queuetab, queuetail, and SYSERR.

Referenced by sleep(), and test_deltaQueue().


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