netlib.narod.ru< Назад | Оглавление | Далее >

include/linux/resource.h

16051 #ifndef _LINUX_RESOURCE_H
16052 #define _LINUX_RESOURCE_H
16053 
16054 #include <linux/time.h>
16055 
16056 /* Resource control/accounting header file for linux */
16057 
16058 /* Definition of struct rusage taken from BSD 4.3 Reno
16059  *
16060  * We don't support all of these yet, but we might as
16061  * well have them....  Otherwise, each time we add new
16062  * items, programs which depend on this structure will
16063  * lose.  This reduces the chances of that happening.  */
16064 #define RUSAGE_SELF     0
16065 #define RUSAGE_CHILDREN (-1)
16066 #define RUSAGE_BOTH     (-2) /* sys_wait4() uses this */
16067 
16068 struct  rusage {
16069   struct timeval ru_utime; /* user time used */
16070   struct timeval ru_stime; /* system time used */
16071   long    ru_maxrss;       /* max resident set size */
16072   long    ru_ixrss;        /* shared mem size */
16073   long    ru_idrss;        /* unshared data size */
16074   long    ru_isrss;        /* unshared stack size */
16075   long    ru_minflt;       /* page reclaims */
16076   long    ru_majflt;       /* page faults */
16077   long    ru_nswap;        /* swaps */
16078   long    ru_inblock;      /* block input operations */
16079   long    ru_oublock;      /* block output operations */
16080   long    ru_msgsnd;       /* messages sent */
16081   long    ru_msgrcv;       /* messages received */
16082   long    ru_nsignals;     /* signals received */
16083   long    ru_nvcsw;        /*voluntary context switches*/
16084   long    ru_nivcsw;       /* involuntary " */
16085 };
16086 
16087 #define RLIM_INFINITY   ((long)(~0UL>>1))
16088 
16089 struct rlimit {
16090   long    rlim_cur;
16091   long    rlim_max;
16092 };
16093 
16094 #define PRIO_MIN        (-20)
16095 #define PRIO_MAX        20
16096 
16097 #define PRIO_PROCESS    0
16098 #define PRIO_PGRP       1
16099 #define PRIO_USER       2
16100 
16101 /* Due to binary compatibility, the actual resource
16102  * numbers may be different for different linux
16103  * versions..  */
16104 #include <asm/resource.h>
16105 
16106 #endif

netlib.narod.ru< Назад | Оглавление | Далее >

Сайт управляется системой uCoz