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

Go to the source code of this file.
Functions | |
| short | insertd (short pid, queue q, short key) |
Definition in file insertd.c.
| short insertd | ( | short | pid, | |
| queue | q, | |||
| short | key | |||
| ) |
Insert a process in delta queue in ascending order
| pid | process id to insert | |
| q | queue in which process should be inserted | |
| key | delta key |
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().
1.5.5