cgroup.h 359 B

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