pmm  1.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
pmm_cond.h File Reference

Go to the source code of this file.

Functions

int cond_users ()
int cond_idle ()
int check_conds (struct pmm_routine *r)

Function Documentation

int check_conds ( struct pmm_routine r)

check if conditions for execution of a routine are satisfied and set executable parameter of routine accordingly

Parameters
rpointer to the routine
Returns
0 if routine is not execuable based on conditions, 1 if it is

Definition at line 170 of file pmm_cond.c.

int cond_idle ( )

test system for idleness

true if 5 minute load is below 0.1

return 0 if not idle, 1 if idle

Definition at line 143 of file pmm_cond.c.

int cond_users ( )

Definition at line 128 of file pmm_cond.c.