VSF Documented
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
resource.h File Reference
#include "shell/sys/linux/vsf_linux_cfg.h"
#include "./types.h"
#include "./time.h"

Go to the source code of this file.

Data Structures

struct  rusage
 
struct  rlimit
 
struct  vsf_linux_sys_resource_vplt_t
 

Macros

#define RLIMIT_CPU   0
 
#define RLIMIT_FSIZE   1
 
#define RLIMIT_DATA   2
 
#define RLIMIT_STACK   3
 
#define RLIMIT_CORE   4
 
#define RLIMIT_RSS   5
 
#define RLIMIT_NPROC   6
 
#define RLIMIT_NOFILE   7
 
#define RLIMIT_MEMLOCK   8
 
#define RLIMIT_LOCKS   10
 
#define RLIMIT_SIGPENDING   11
 
#define RLIMIT_MSGQUEUE   12
 
#define RLIMIT_NICE   13
 
#define RLIMIT_RTPRIO   14
 
#define RLIMIT_RTTIME   15
 
#define RLIM_NLIMITS   16
 
#define RLIM_INFINITY   (~0UL)
 
#define PRIO_PROCESS   0
 
#define PRIO_PGRP   1
 
#define PRIO_USER   2
 

Typedefs

typedef unsigned long rlim_t
 
typedef struct vsf_linux_sys_resource_vplt_t vsf_linux_sys_resource_vplt_t
 

Enumerations

enum  {
  RUSAGE_SELF = 0 ,
  RUSAGE_CHILDREN ,
  RUSAGE_THREAD
}
 

Functions

int getpriority (int which, id_t who)
 
int setpriority (int which, id_t who, int prio)
 

Variables

__VSF_VPLT_DECORATOR__ vsf_linux_sys_resource_vplt_t vsf_linux_sys_resource_vplt
 

Macro Definition Documentation

◆ RLIMIT_CPU

#define RLIMIT_CPU   0

◆ RLIMIT_FSIZE

#define RLIMIT_FSIZE   1

◆ RLIMIT_DATA

#define RLIMIT_DATA   2

◆ RLIMIT_STACK

#define RLIMIT_STACK   3

◆ RLIMIT_CORE

#define RLIMIT_CORE   4

◆ RLIMIT_RSS

#define RLIMIT_RSS   5

◆ RLIMIT_NPROC

#define RLIMIT_NPROC   6

◆ RLIMIT_NOFILE

#define RLIMIT_NOFILE   7

◆ RLIMIT_MEMLOCK

#define RLIMIT_MEMLOCK   8

◆ RLIMIT_LOCKS

#define RLIMIT_LOCKS   10

◆ RLIMIT_SIGPENDING

#define RLIMIT_SIGPENDING   11

◆ RLIMIT_MSGQUEUE

#define RLIMIT_MSGQUEUE   12

◆ RLIMIT_NICE

#define RLIMIT_NICE   13

◆ RLIMIT_RTPRIO

#define RLIMIT_RTPRIO   14

◆ RLIMIT_RTTIME

#define RLIMIT_RTTIME   15

◆ RLIM_NLIMITS

#define RLIM_NLIMITS   16

◆ RLIM_INFINITY

#define RLIM_INFINITY   (~0UL)

◆ PRIO_PROCESS

#define PRIO_PROCESS   0

◆ PRIO_PGRP

#define PRIO_PGRP   1

◆ PRIO_USER

#define PRIO_USER   2

Typedef Documentation

◆ rlim_t

typedef unsigned long rlim_t

◆ vsf_linux_sys_resource_vplt_t

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
RUSAGE_SELF 
RUSAGE_CHILDREN 
RUSAGE_THREAD 

Function Documentation

◆ getpriority()

int getpriority ( int  which,
id_t  who 
)

◆ setpriority()

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

Variable Documentation

◆ vsf_linux_sys_resource_vplt

__VSF_VPLT_DECORATOR__ vsf_linux_sys_resource_vplt_t vsf_linux_sys_resource_vplt
extern