cgroup.h 373 B

12345678910111213141516171819
  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. extern void close_cgroup(struct cgroup_sel *cgrp);
  12. extern int parse_cgroups(const struct option *opt, const char *str, int unset);
  13. #endif /* __CGROUP_H__ */