Back to index

glibc  2.9
Functions
getpriority.c File Reference
#include <errno.h>
#include <sys/resource.h>
#include <sys/sysmp.h>

Go to the source code of this file.

Functions

int __sysmp (int,...)
int getpriority (enum __priority_which which, id_t who)

Function Documentation

int __sysmp ( int  ,
  ... 
)

Here is the caller graph for this function:

int getpriority ( enum __priority_which  which,
id_t  who 
)

Definition at line 30 of file getpriority.c.

{
  switch (which)
    {
    case PRIO_PROCESS:
      return __sysmp (MP_SCHED, MPTS_GTNICE_PROC, who);
    case PRIO_PGRP:
      return __sysmp (MP_SCHED, MPTS_GTNICE_PGRP, who);
    case PRIO_USER:
      return __sysmp (MP_SCHED, MPTS_GTNICE_USER, who);
    }

  __set_errno (EINVAL);
  return -1;
}

Here is the call graph for this function:

Here is the caller graph for this function: