support limit
This commit is contained in:
parent
bef32ace38
commit
ecf1916d78
33 changed files with 3036 additions and 243 deletions
29
src/include/xcelimit.h
Normal file
29
src/include/xcelimit.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#if !defined(_XCELIMIT_H_)
|
||||
|
||||
#define _XCELIMIT_H_ 1
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "group.h"
|
||||
#include "kvmgr.h"
|
||||
#include "xce/types.h"
|
||||
|
||||
extern int build_consumer(xce_consumer_t**, groupmgr_t*, xce_consumer_type_t,
|
||||
int, xce_group_config_t*, char*);
|
||||
extern void kill_consumer(xce_consumer_t*);
|
||||
extern int build_limit(xce_limit_t**, groupmgr_t*, groupmgr_t*, groupmgr_t*,
|
||||
groupmgr_t*, xce_limit_config_t*);
|
||||
extern int match_limit(xce_limit_t*, int, ...);
|
||||
extern int build_vres_name(char**, xce_limit_t*, char*, char*, char*);
|
||||
extern int is_host_based_limit(resmgr_t*, xce_limit_t*);
|
||||
extern int fmt_consumer(char*, int, xce_consumer_t*);
|
||||
extern int fmt_limit(char*, int, xce_limit_t*);
|
||||
extern void kill_limit(xce_limit_t*);
|
||||
extern int instantiate_limit(xce_vres_t**, resmgr_t*, xce_limit_t*, char*,
|
||||
char*, char*);
|
||||
extern void kill_vres(xce_vres_t*);
|
||||
extern int add_vres(xce_resource_t**, resmgr_t*, char*, int);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue