|
|
1.1 root 1: 1.1.1.2 ! root 2: /* getprio.c */ ! 3: ! 4: #include <conf.h> 1.1 root 5: #include <kernel.h> 6: #include <proc.h> 7: 8: SYSCALL getprio(pid) 1.1.1.2 ! root 9: int pid; 1.1 root 10: { 1.1.1.2 ! root 11: struct pentry *pptr; ! 12: ! 13: disable(); ! 14: if (isbadpid(pid) || (pptr = &proctab[pid])->pstate == PRFREE) ! 15: { ! 16: restore(); ! 17: return(SYSERR); ! 18: } ! 19: restore(); ! 20: return(pptr->pprio); 1.1 root 21: } 1.1.1.2 ! root 22:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.