root/include/linux/resource.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef _LINUX_RESOURCE_H
   2 #define _LINUX_RESOURCE_H
   3 
   4 /*
   5  * Resource control/accounting header file for linux
   6  */
   7 
   8 /*
   9  * Definition of struct rusage taken from BSD 4.3 Reno
  10  * 
  11  * We don't support all of these yet, but we might as well have them....
  12  * Otherwise, each time we add new items, programs which depend on this
  13  * structure will lose.  This reduces the chances of that happening.
  14  */
  15 #define RUSAGE_SELF     0
  16 #define RUSAGE_CHILDREN (-1)
  17 #define RUSAGE_BOTH     (-2)            /* sys_wait4() uses this */
  18 
  19 struct  rusage {
  20         struct timeval ru_utime;        /* user time used */
  21         struct timeval ru_stime;        /* system time used */
  22         long    ru_maxrss;              /* maximum resident set size */
  23         long    ru_ixrss;               /* integral shared memory size */
  24         long    ru_idrss;               /* integral unshared data size */
  25         long    ru_isrss;               /* integral unshared stack size */
  26         long    ru_minflt;              /* page reclaims */
  27         long    ru_majflt;              /* page faults */
  28         long    ru_nswap;               /* swaps */
  29         long    ru_inblock;             /* block input operations */
  30         long    ru_oublock;             /* block output operations */
  31         long    ru_msgsnd;              /* messages sent */
  32         long    ru_msgrcv;              /* messages received */
  33         long    ru_nsignals;            /* signals received */
  34         long    ru_nvcsw;               /* voluntary context switches */
  35         long    ru_nivcsw;              /* involuntary " */
  36 };
  37 
  38 #define RLIM_INFINITY   ((long)(~0UL>>1))
  39 
  40 struct rlimit {
  41         long    rlim_cur;
  42         long    rlim_max;
  43 };
  44 
  45 #define PRIO_MIN        (-99)
  46 #define PRIO_MAX        14
  47 
  48 #define PRIO_PROCESS    0
  49 #define PRIO_PGRP       1
  50 #define PRIO_USER       2
  51 
  52 /*
  53  * Due to binary compatibility, the actual resource numbers
  54  * may be different for different linux versions..
  55  */
  56 #include <asm/resource.h>
  57 
  58 #endif

/* [previous][next][first][last][top][bottom][index][help] */