|
|
Xinu for 68000/68010
/* getprio.c */
#include <conf.h>
#include <kernel.h>
#include <proc.h>
SYSCALL getprio(pid)
int pid;
{
struct pentry *pptr;
disable();
if (isbadpid(pid) || (pptr = &proctab[pid])->pstate == PRFREE)
{
restore();
return(SYSERR);
}
restore();
return(pptr->pprio);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.