X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fplanetlab.h;h=246f66bde406630b522951a9e6674f70934e3e3f;hb=5594cc4c22c895396adc5c59d39b294f7b171de1;hp=fe346aa7e2610260c5553e90611c4a7547916837;hpb=6471cae28b5b32ff2d425b3d103a4ceac7550125;p=util-vserver.git diff --git a/lib/planetlab.h b/lib/planetlab.h index fe346aa..246f66b 100644 --- a/lib/planetlab.h +++ b/lib/planetlab.h @@ -38,16 +38,16 @@ POSSIBILITY OF SUCH DAMAGE. struct sliver_resources { unsigned long long vs_cpu; - unsigned long long vs_cpuguaranteed; struct vc_rlimit vs_rss; struct vc_rlimit vs_as; struct vc_rlimit vs_nproc; struct vc_rlimit vs_openfd; - unsigned int vs_whitelisted; }; +int adjust_lim(const struct vc_rlimit *vcr, struct rlimit *lim); + int -pl_chcontext(xid_t ctx, uint32_t flags, uint64_t bcaps, struct sliver_resources *slr); +pl_chcontext(xid_t ctx, uint64_t bcaps, const struct sliver_resources *slr); int pl_setup_done(xid_t ctx); @@ -61,8 +61,8 @@ pl_setsched(xid_t ctx, uint32_t cpu_share, uint32_t cpu_sched_flags); /* Null byte made explicit */ #define NULLBYTE_SIZE 1 -void pl_get_limits(char *, struct sliver_resources *); -void pl_set_limits(xid_t, struct sliver_resources *); +void pl_get_limits(const char *, struct sliver_resources *); +void pl_set_ulimits(const struct sliver_resources *); static int _PERROR(const char *format, char *file, int line, int _errno, ...)