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

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

Include dependency graph for insert.c:

Go to the source code of this file.

Functions

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


Detailed Description

insert

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

Definition in file insert.c.


Function Documentation

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

Insert a process into a queue in descending key order.

Parameters:
pid process id to insert
q queue in which process should be inserted
key sorting key (priority, for example)
Returns:
OK

Definition at line 20 of file insert.c.

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

Referenced by ready(), resched(), and test_procQueue().


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