#include <config/config_param.h>
#include <config/config_cparam.h>
#include <sys/ktypes.h>
Defines | |
#define | RUN_Q 1 |
Queue Types. | |
Functions | |
void | alloc_q (queuep queue, unsigned char max_items, unsigned char qtype, unsigned short size, unsigned char qno) |
void | qinit (queuep queue) |
void | enq (queuep queue, const void *item, unsigned short key) |
void | deq (queuep queue, void *item, unsigned short key) |
int | pdelq (queuep queue, pid_t item) |
void | pdeq (queuep queue, pid_t *item, unsigned short key) |
void | penq (queuep queue, pid_t item, unsigned short key) |
void | prio_penq (queuep queue, pid_t item, unsigned short key) |
void | prio_pdeq (queuep queue, pid_t *item, unsigned short key) |
|
Initialize a Queue - Allocate array of memory to the Queue. Called during system initialization.
|
|
Dequeue the process from the Queue, based on the schemes.
|
|
enqueue the item in the Queue.
|
|
Delete a pid from the Queue.
|
|
Dequeue the process from the Queue, based on the schemes.
|
|
Enqueue a process id in the Queue.
|
|
Dequeue the highest priority process from the Queue.
|
|
Enqueue a process in the Priority Queue.
|
|
Intialize the Queue.
|