Back to index

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

Go to the source code of this file.

Functions

int setpriority (enum __priority_which which, id_t who, int prio)

Function Documentation

int setpriority ( enum __priority_which  which,
id_t  who,
int  prio 
)

Definition at line 24 of file setpriority.c.

{
  switch (which)
    {
    case PRIO_PROCESS:
      return __sysmp (MP_SCHED, MPTS_RENICE_PROC, who, prio);
    case PRIO_PGRP:
      return __sysmp (MP_SCHED, MPTS_RENICE_PGRP, who, prio);
    case PRIO_USER:
      return __sysmp (MP_SCHED, MPTS_RENICE_USER, who, prio);
    }

  __set_errno (EINVAL);
  return -1;
}

Here is the call graph for this function:

Here is the caller graph for this function: