cgroup.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  1. #ifndef _LINUX_CGROUP_H
  2. #define _LINUX_CGROUP_H
  3. /*
  4. * cgroup interface
  5. *
  6. * Copyright (C) 2003 BULL SA
  7. * Copyright (C) 2004-2006 Silicon Graphics, Inc.
  8. *
  9. */
  10. #include <linux/sched.h>
  11. #include <linux/cpumask.h>
  12. #include <linux/nodemask.h>
  13. #include <linux/rcupdate.h>
  14. #include <linux/cgroupstats.h>
  15. #include <linux/prio_heap.h>
  16. #include <linux/rwsem.h>
  17. #include <linux/idr.h>
  18. #include <linux/workqueue.h>
  19. #include <linux/xattr.h>
  20. #ifdef CONFIG_CGROUPS
  21. struct cgroupfs_root;
  22. struct cgroup_subsys;
  23. struct inode;
  24. struct cgroup;
  25. struct css_id;
  26. extern int cgroup_init_early(void);
  27. extern int cgroup_init(void);
  28. extern void cgroup_lock(void);
  29. extern int cgroup_lock_is_held(void);
  30. extern bool cgroup_lock_live_group(struct cgroup *cgrp);
  31. extern void cgroup_unlock(void);
  32. extern void cgroup_fork(struct task_struct *p);
  33. extern void cgroup_post_fork(struct task_struct *p);
  34. extern void cgroup_exit(struct task_struct *p, int run_callbacks);
  35. extern int cgroupstats_build(struct cgroupstats *stats,
  36. struct dentry *dentry);
  37. extern int cgroup_load_subsys(struct cgroup_subsys *ss);
  38. extern void cgroup_unload_subsys(struct cgroup_subsys *ss);
  39. extern const struct file_operations proc_cgroup_operations;
  40. /* Define the enumeration of all builtin cgroup subsystems */
  41. #define SUBSYS(_x) _x ## _subsys_id,
  42. #define IS_SUBSYS_ENABLED(option) IS_ENABLED(option)
  43. enum cgroup_subsys_id {
  44. #include <linux/cgroup_subsys.h>
  45. CGROUP_SUBSYS_COUNT,
  46. };
  47. #undef IS_SUBSYS_ENABLED
  48. #undef SUBSYS
  49. /* Per-subsystem/per-cgroup state maintained by the system. */
  50. struct cgroup_subsys_state {
  51. /*
  52. * The cgroup that this subsystem is attached to. Useful
  53. * for subsystems that want to know about the cgroup
  54. * hierarchy structure
  55. */
  56. struct cgroup *cgroup;
  57. /*
  58. * State maintained by the cgroup system to allow subsystems
  59. * to be "busy". Should be accessed via css_get(),
  60. * css_tryget() and and css_put().
  61. */
  62. atomic_t refcnt;
  63. unsigned long flags;
  64. /* ID for this css, if possible */
  65. struct css_id __rcu *id;
  66. /* Used to put @cgroup->dentry on the last css_put() */
  67. struct work_struct dput_work;
  68. };
  69. /* bits in struct cgroup_subsys_state flags field */
  70. enum {
  71. CSS_ROOT, /* This CSS is the root of the subsystem */
  72. };
  73. /* Caller must verify that the css is not for root cgroup */
  74. static inline void __css_get(struct cgroup_subsys_state *css, int count)
  75. {
  76. atomic_add(count, &css->refcnt);
  77. }
  78. /*
  79. * Call css_get() to hold a reference on the css; it can be used
  80. * for a reference obtained via:
  81. * - an existing ref-counted reference to the css
  82. * - task->cgroups for a locked task
  83. */
  84. static inline void css_get(struct cgroup_subsys_state *css)
  85. {
  86. /* We don't need to reference count the root state */
  87. if (!test_bit(CSS_ROOT, &css->flags))
  88. __css_get(css, 1);
  89. }
  90. /*
  91. * Call css_tryget() to take a reference on a css if your existing
  92. * (known-valid) reference isn't already ref-counted. Returns false if
  93. * the css has been destroyed.
  94. */
  95. extern bool __css_tryget(struct cgroup_subsys_state *css);
  96. static inline bool css_tryget(struct cgroup_subsys_state *css)
  97. {
  98. if (test_bit(CSS_ROOT, &css->flags))
  99. return true;
  100. return __css_tryget(css);
  101. }
  102. /*
  103. * css_put() should be called to release a reference taken by
  104. * css_get() or css_tryget()
  105. */
  106. extern void __css_put(struct cgroup_subsys_state *css);
  107. static inline void css_put(struct cgroup_subsys_state *css)
  108. {
  109. if (!test_bit(CSS_ROOT, &css->flags))
  110. __css_put(css);
  111. }
  112. /* bits in struct cgroup flags field */
  113. enum {
  114. /* Control Group is dead */
  115. CGRP_REMOVED,
  116. /*
  117. * Control Group has previously had a child cgroup or a task,
  118. * but no longer (only if CGRP_NOTIFY_ON_RELEASE is set)
  119. */
  120. CGRP_RELEASABLE,
  121. /* Control Group requires release notifications to userspace */
  122. CGRP_NOTIFY_ON_RELEASE,
  123. /*
  124. * Clone cgroup values when creating a new child cgroup
  125. */
  126. CGRP_CLONE_CHILDREN,
  127. };
  128. struct cgroup {
  129. unsigned long flags; /* "unsigned long" so bitops work */
  130. /*
  131. * count users of this cgroup. >0 means busy, but doesn't
  132. * necessarily indicate the number of tasks in the cgroup
  133. */
  134. atomic_t count;
  135. /*
  136. * We link our 'sibling' struct into our parent's 'children'.
  137. * Our children link their 'sibling' into our 'children'.
  138. */
  139. struct list_head sibling; /* my parent's children */
  140. struct list_head children; /* my children */
  141. struct list_head files; /* my files */
  142. struct cgroup *parent; /* my parent */
  143. struct dentry __rcu *dentry; /* cgroup fs entry, RCU protected */
  144. /* Private pointers for each registered subsystem */
  145. struct cgroup_subsys_state *subsys[CGROUP_SUBSYS_COUNT];
  146. struct cgroupfs_root *root;
  147. struct cgroup *top_cgroup;
  148. /*
  149. * List of cg_cgroup_links pointing at css_sets with
  150. * tasks in this cgroup. Protected by css_set_lock
  151. */
  152. struct list_head css_sets;
  153. struct list_head allcg_node; /* cgroupfs_root->allcg_list */
  154. struct list_head cft_q_node; /* used during cftype add/rm */
  155. /*
  156. * Linked list running through all cgroups that can
  157. * potentially be reaped by the release agent. Protected by
  158. * release_list_lock
  159. */
  160. struct list_head release_list;
  161. /*
  162. * list of pidlists, up to two for each namespace (one for procs, one
  163. * for tasks); created on demand.
  164. */
  165. struct list_head pidlists;
  166. struct mutex pidlist_mutex;
  167. /* For RCU-protected deletion */
  168. struct rcu_head rcu_head;
  169. /* List of events which userspace want to receive */
  170. struct list_head event_list;
  171. spinlock_t event_list_lock;
  172. /* directory xattrs */
  173. struct simple_xattrs xattrs;
  174. };
  175. /*
  176. * A css_set is a structure holding pointers to a set of
  177. * cgroup_subsys_state objects. This saves space in the task struct
  178. * object and speeds up fork()/exit(), since a single inc/dec and a
  179. * list_add()/del() can bump the reference count on the entire cgroup
  180. * set for a task.
  181. */
  182. struct css_set {
  183. /* Reference count */
  184. atomic_t refcount;
  185. /*
  186. * List running through all cgroup groups in the same hash
  187. * slot. Protected by css_set_lock
  188. */
  189. struct hlist_node hlist;
  190. /*
  191. * List running through all tasks using this cgroup
  192. * group. Protected by css_set_lock
  193. */
  194. struct list_head tasks;
  195. /*
  196. * List of cg_cgroup_link objects on link chains from
  197. * cgroups referenced from this css_set. Protected by
  198. * css_set_lock
  199. */
  200. struct list_head cg_links;
  201. /*
  202. * Set of subsystem states, one for each subsystem. This array
  203. * is immutable after creation apart from the init_css_set
  204. * during subsystem registration (at boot time) and modular subsystem
  205. * loading/unloading.
  206. */
  207. struct cgroup_subsys_state *subsys[CGROUP_SUBSYS_COUNT];
  208. /* For RCU-protected deletion */
  209. struct rcu_head rcu_head;
  210. };
  211. /*
  212. * cgroup_map_cb is an abstract callback API for reporting map-valued
  213. * control files
  214. */
  215. struct cgroup_map_cb {
  216. int (*fill)(struct cgroup_map_cb *cb, const char *key, u64 value);
  217. void *state;
  218. };
  219. /*
  220. * struct cftype: handler definitions for cgroup control files
  221. *
  222. * When reading/writing to a file:
  223. * - the cgroup to use is file->f_dentry->d_parent->d_fsdata
  224. * - the 'cftype' of the file is file->f_dentry->d_fsdata
  225. */
  226. /* cftype->flags */
  227. #define CFTYPE_ONLY_ON_ROOT (1U << 0) /* only create on root cg */
  228. #define CFTYPE_NOT_ON_ROOT (1U << 1) /* don't create onp root cg */
  229. #define MAX_CFTYPE_NAME 64
  230. struct cftype {
  231. /*
  232. * By convention, the name should begin with the name of the
  233. * subsystem, followed by a period. Zero length string indicates
  234. * end of cftype array.
  235. */
  236. char name[MAX_CFTYPE_NAME];
  237. int private;
  238. /*
  239. * If not 0, file mode is set to this value, otherwise it will
  240. * be figured out automatically
  241. */
  242. umode_t mode;
  243. /*
  244. * If non-zero, defines the maximum length of string that can
  245. * be passed to write_string; defaults to 64
  246. */
  247. size_t max_write_len;
  248. /* CFTYPE_* flags */
  249. unsigned int flags;
  250. /* file xattrs */
  251. struct simple_xattrs xattrs;
  252. int (*open)(struct inode *inode, struct file *file);
  253. ssize_t (*read)(struct cgroup *cgrp, struct cftype *cft,
  254. struct file *file,
  255. char __user *buf, size_t nbytes, loff_t *ppos);
  256. /*
  257. * read_u64() is a shortcut for the common case of returning a
  258. * single integer. Use it in place of read()
  259. */
  260. u64 (*read_u64)(struct cgroup *cgrp, struct cftype *cft);
  261. /*
  262. * read_s64() is a signed version of read_u64()
  263. */
  264. s64 (*read_s64)(struct cgroup *cgrp, struct cftype *cft);
  265. /*
  266. * read_map() is used for defining a map of key/value
  267. * pairs. It should call cb->fill(cb, key, value) for each
  268. * entry. The key/value pairs (and their ordering) should not
  269. * change between reboots.
  270. */
  271. int (*read_map)(struct cgroup *cont, struct cftype *cft,
  272. struct cgroup_map_cb *cb);
  273. /*
  274. * read_seq_string() is used for outputting a simple sequence
  275. * using seqfile.
  276. */
  277. int (*read_seq_string)(struct cgroup *cont, struct cftype *cft,
  278. struct seq_file *m);
  279. ssize_t (*write)(struct cgroup *cgrp, struct cftype *cft,
  280. struct file *file,
  281. const char __user *buf, size_t nbytes, loff_t *ppos);
  282. /*
  283. * write_u64() is a shortcut for the common case of accepting
  284. * a single integer (as parsed by simple_strtoull) from
  285. * userspace. Use in place of write(); return 0 or error.
  286. */
  287. int (*write_u64)(struct cgroup *cgrp, struct cftype *cft, u64 val);
  288. /*
  289. * write_s64() is a signed version of write_u64()
  290. */
  291. int (*write_s64)(struct cgroup *cgrp, struct cftype *cft, s64 val);
  292. /*
  293. * write_string() is passed a nul-terminated kernelspace
  294. * buffer of maximum length determined by max_write_len.
  295. * Returns 0 or -ve error code.
  296. */
  297. int (*write_string)(struct cgroup *cgrp, struct cftype *cft,
  298. const char *buffer);
  299. /*
  300. * trigger() callback can be used to get some kick from the
  301. * userspace, when the actual string written is not important
  302. * at all. The private field can be used to determine the
  303. * kick type for multiplexing.
  304. */
  305. int (*trigger)(struct cgroup *cgrp, unsigned int event);
  306. int (*release)(struct inode *inode, struct file *file);
  307. /*
  308. * register_event() callback will be used to add new userspace
  309. * waiter for changes related to the cftype. Implement it if
  310. * you want to provide this functionality. Use eventfd_signal()
  311. * on eventfd to send notification to userspace.
  312. */
  313. int (*register_event)(struct cgroup *cgrp, struct cftype *cft,
  314. struct eventfd_ctx *eventfd, const char *args);
  315. /*
  316. * unregister_event() callback will be called when userspace
  317. * closes the eventfd or on cgroup removing.
  318. * This callback must be implemented, if you want provide
  319. * notification functionality.
  320. */
  321. void (*unregister_event)(struct cgroup *cgrp, struct cftype *cft,
  322. struct eventfd_ctx *eventfd);
  323. };
  324. /*
  325. * cftype_sets describe cftypes belonging to a subsystem and are chained at
  326. * cgroup_subsys->cftsets. Each cftset points to an array of cftypes
  327. * terminated by zero length name.
  328. */
  329. struct cftype_set {
  330. struct list_head node; /* chained at subsys->cftsets */
  331. struct cftype *cfts;
  332. };
  333. struct cgroup_scanner {
  334. struct cgroup *cg;
  335. int (*test_task)(struct task_struct *p, struct cgroup_scanner *scan);
  336. void (*process_task)(struct task_struct *p,
  337. struct cgroup_scanner *scan);
  338. struct ptr_heap *heap;
  339. void *data;
  340. };
  341. int cgroup_add_cftypes(struct cgroup_subsys *ss, struct cftype *cfts);
  342. int cgroup_rm_cftypes(struct cgroup_subsys *ss, struct cftype *cfts);
  343. int cgroup_is_removed(const struct cgroup *cgrp);
  344. int cgroup_path(const struct cgroup *cgrp, char *buf, int buflen);
  345. int cgroup_task_count(const struct cgroup *cgrp);
  346. /* Return true if cgrp is a descendant of the task's cgroup */
  347. int cgroup_is_descendant(const struct cgroup *cgrp, struct task_struct *task);
  348. /*
  349. * Control Group taskset, used to pass around set of tasks to cgroup_subsys
  350. * methods.
  351. */
  352. struct cgroup_taskset;
  353. struct task_struct *cgroup_taskset_first(struct cgroup_taskset *tset);
  354. struct task_struct *cgroup_taskset_next(struct cgroup_taskset *tset);
  355. struct cgroup *cgroup_taskset_cur_cgroup(struct cgroup_taskset *tset);
  356. int cgroup_taskset_size(struct cgroup_taskset *tset);
  357. /**
  358. * cgroup_taskset_for_each - iterate cgroup_taskset
  359. * @task: the loop cursor
  360. * @skip_cgrp: skip if task's cgroup matches this, %NULL to iterate through all
  361. * @tset: taskset to iterate
  362. */
  363. #define cgroup_taskset_for_each(task, skip_cgrp, tset) \
  364. for ((task) = cgroup_taskset_first((tset)); (task); \
  365. (task) = cgroup_taskset_next((tset))) \
  366. if (!(skip_cgrp) || \
  367. cgroup_taskset_cur_cgroup((tset)) != (skip_cgrp))
  368. /*
  369. * Control Group subsystem type.
  370. * See Documentation/cgroups/cgroups.txt for details
  371. */
  372. struct cgroup_subsys {
  373. struct cgroup_subsys_state *(*create)(struct cgroup *cgrp);
  374. void (*post_create)(struct cgroup *cgrp);
  375. void (*pre_destroy)(struct cgroup *cgrp);
  376. void (*destroy)(struct cgroup *cgrp);
  377. int (*can_attach)(struct cgroup *cgrp, struct cgroup_taskset *tset);
  378. void (*cancel_attach)(struct cgroup *cgrp, struct cgroup_taskset *tset);
  379. void (*attach)(struct cgroup *cgrp, struct cgroup_taskset *tset);
  380. void (*fork)(struct task_struct *task);
  381. void (*exit)(struct cgroup *cgrp, struct cgroup *old_cgrp,
  382. struct task_struct *task);
  383. void (*post_clone)(struct cgroup *cgrp);
  384. void (*bind)(struct cgroup *root);
  385. int subsys_id;
  386. int active;
  387. int disabled;
  388. int early_init;
  389. /*
  390. * True if this subsys uses ID. ID is not available before cgroup_init()
  391. * (not available in early_init time.)
  392. */
  393. bool use_id;
  394. /*
  395. * If %false, this subsystem is properly hierarchical -
  396. * configuration, resource accounting and restriction on a parent
  397. * cgroup cover those of its children. If %true, hierarchy support
  398. * is broken in some ways - some subsystems ignore hierarchy
  399. * completely while others are only implemented half-way.
  400. *
  401. * It's now disallowed to create nested cgroups if the subsystem is
  402. * broken and cgroup core will emit a warning message on such
  403. * cases. Eventually, all subsystems will be made properly
  404. * hierarchical and this will go away.
  405. */
  406. bool broken_hierarchy;
  407. bool warned_broken_hierarchy;
  408. #define MAX_CGROUP_TYPE_NAMELEN 32
  409. const char *name;
  410. /*
  411. * Link to parent, and list entry in parent's children.
  412. * Protected by cgroup_lock()
  413. */
  414. struct cgroupfs_root *root;
  415. struct list_head sibling;
  416. /* used when use_id == true */
  417. struct idr idr;
  418. spinlock_t id_lock;
  419. /* list of cftype_sets */
  420. struct list_head cftsets;
  421. /* base cftypes, automatically [de]registered with subsys itself */
  422. struct cftype *base_cftypes;
  423. struct cftype_set base_cftset;
  424. /* should be defined only by modular subsystems */
  425. struct module *module;
  426. };
  427. #define SUBSYS(_x) extern struct cgroup_subsys _x ## _subsys;
  428. #define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
  429. #include <linux/cgroup_subsys.h>
  430. #undef IS_SUBSYS_ENABLED
  431. #undef SUBSYS
  432. static inline struct cgroup_subsys_state *cgroup_subsys_state(
  433. struct cgroup *cgrp, int subsys_id)
  434. {
  435. return cgrp->subsys[subsys_id];
  436. }
  437. /*
  438. * function to get the cgroup_subsys_state which allows for extra
  439. * rcu_dereference_check() conditions, such as locks used during the
  440. * cgroup_subsys::attach() methods.
  441. */
  442. #define task_subsys_state_check(task, subsys_id, __c) \
  443. rcu_dereference_check(task->cgroups->subsys[subsys_id], \
  444. lockdep_is_held(&task->alloc_lock) || \
  445. cgroup_lock_is_held() || (__c))
  446. static inline struct cgroup_subsys_state *
  447. task_subsys_state(struct task_struct *task, int subsys_id)
  448. {
  449. return task_subsys_state_check(task, subsys_id, false);
  450. }
  451. static inline struct cgroup* task_cgroup(struct task_struct *task,
  452. int subsys_id)
  453. {
  454. return task_subsys_state(task, subsys_id)->cgroup;
  455. }
  456. /* A cgroup_iter should be treated as an opaque object */
  457. struct cgroup_iter {
  458. struct list_head *cg_link;
  459. struct list_head *task;
  460. };
  461. /*
  462. * To iterate across the tasks in a cgroup:
  463. *
  464. * 1) call cgroup_iter_start to initialize an iterator
  465. *
  466. * 2) call cgroup_iter_next() to retrieve member tasks until it
  467. * returns NULL or until you want to end the iteration
  468. *
  469. * 3) call cgroup_iter_end() to destroy the iterator.
  470. *
  471. * Or, call cgroup_scan_tasks() to iterate through every task in a
  472. * cgroup - cgroup_scan_tasks() holds the css_set_lock when calling
  473. * the test_task() callback, but not while calling the process_task()
  474. * callback.
  475. */
  476. void cgroup_iter_start(struct cgroup *cgrp, struct cgroup_iter *it);
  477. struct task_struct *cgroup_iter_next(struct cgroup *cgrp,
  478. struct cgroup_iter *it);
  479. void cgroup_iter_end(struct cgroup *cgrp, struct cgroup_iter *it);
  480. int cgroup_scan_tasks(struct cgroup_scanner *scan);
  481. int cgroup_attach_task(struct cgroup *, struct task_struct *);
  482. int cgroup_attach_task_all(struct task_struct *from, struct task_struct *);
  483. /*
  484. * CSS ID is ID for cgroup_subsys_state structs under subsys. This only works
  485. * if cgroup_subsys.use_id == true. It can be used for looking up and scanning.
  486. * CSS ID is assigned at cgroup allocation (create) automatically
  487. * and removed when subsys calls free_css_id() function. This is because
  488. * the lifetime of cgroup_subsys_state is subsys's matter.
  489. *
  490. * Looking up and scanning function should be called under rcu_read_lock().
  491. * Taking cgroup_mutex is not necessary for following calls.
  492. * But the css returned by this routine can be "not populated yet" or "being
  493. * destroyed". The caller should check css and cgroup's status.
  494. */
  495. /*
  496. * Typically Called at ->destroy(), or somewhere the subsys frees
  497. * cgroup_subsys_state.
  498. */
  499. void free_css_id(struct cgroup_subsys *ss, struct cgroup_subsys_state *css);
  500. /* Find a cgroup_subsys_state which has given ID */
  501. struct cgroup_subsys_state *css_lookup(struct cgroup_subsys *ss, int id);
  502. /*
  503. * Get a cgroup whose id is greater than or equal to id under tree of root.
  504. * Returning a cgroup_subsys_state or NULL.
  505. */
  506. struct cgroup_subsys_state *css_get_next(struct cgroup_subsys *ss, int id,
  507. struct cgroup_subsys_state *root, int *foundid);
  508. /* Returns true if root is ancestor of cg */
  509. bool css_is_ancestor(struct cgroup_subsys_state *cg,
  510. const struct cgroup_subsys_state *root);
  511. /* Get id and depth of css */
  512. unsigned short css_id(struct cgroup_subsys_state *css);
  513. unsigned short css_depth(struct cgroup_subsys_state *css);
  514. struct cgroup_subsys_state *cgroup_css_from_dir(struct file *f, int id);
  515. #else /* !CONFIG_CGROUPS */
  516. static inline int cgroup_init_early(void) { return 0; }
  517. static inline int cgroup_init(void) { return 0; }
  518. static inline void cgroup_fork(struct task_struct *p) {}
  519. static inline void cgroup_fork_callbacks(struct task_struct *p) {}
  520. static inline void cgroup_post_fork(struct task_struct *p) {}
  521. static inline void cgroup_exit(struct task_struct *p, int callbacks) {}
  522. static inline void cgroup_lock(void) {}
  523. static inline void cgroup_unlock(void) {}
  524. static inline int cgroupstats_build(struct cgroupstats *stats,
  525. struct dentry *dentry)
  526. {
  527. return -EINVAL;
  528. }
  529. /* No cgroups - nothing to do */
  530. static inline int cgroup_attach_task_all(struct task_struct *from,
  531. struct task_struct *t)
  532. {
  533. return 0;
  534. }
  535. #endif /* !CONFIG_CGROUPS */
  536. #endif /* _LINUX_CGROUP_H */