cgroup.h 341 B

123456789101112131415161718
  1. #ifndef __CGROUP_H__
  2. #define __CGROUP_H__
  3. struct option;
  4. struct cgroup_sel {
  5. char *name;
  6. int fd;
  7. int refcnt;
  8. };
  9. extern int nr_cgroups; /* number of explicit cgroups defined */
  10. extern void close_cgroup(struct cgroup_sel *cgrp);
  11. extern int parse_cgroups(const struct option *opt, const char *str, int unset);
  12. #endif /* __CGROUP_H__ */