cgroup.h (42249094f79422fbf5ed4b54eeb48ff096809b8f) cgroup.h (79bd9814e5ec9a288d6599f53aeac0b548fdfe52)
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 *

--- 893 unchanged lines hidden (view full) ---

902bool css_is_ancestor(struct cgroup_subsys_state *cg,
903 const struct cgroup_subsys_state *root);
904
905/* Get id and depth of css */
906unsigned short css_id(struct cgroup_subsys_state *css);
907struct cgroup_subsys_state *css_from_dir(struct dentry *dentry,
908 struct cgroup_subsys *ss);
909
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 *

--- 893 unchanged lines hidden (view full) ---

902bool css_is_ancestor(struct cgroup_subsys_state *cg,
903 const struct cgroup_subsys_state *root);
904
905/* Get id and depth of css */
906unsigned short css_id(struct cgroup_subsys_state *css);
907struct cgroup_subsys_state *css_from_dir(struct dentry *dentry,
908 struct cgroup_subsys *ss);
909
910/* XXX: temporary */
911struct cgroup_subsys_state *cgroup_css(struct cgroup *cgrp,
912 struct cgroup_subsys *ss);
913struct cftype *__file_cft(struct file *file);
914
910#else /* !CONFIG_CGROUPS */
911
912static inline int cgroup_init_early(void) { return 0; }
913static inline int cgroup_init(void) { return 0; }
914static inline void cgroup_fork(struct task_struct *p) {}
915static inline void cgroup_post_fork(struct task_struct *p) {}
916static inline void cgroup_exit(struct task_struct *p, int callbacks) {}
917

--- 16 unchanged lines hidden ---
915#else /* !CONFIG_CGROUPS */
916
917static inline int cgroup_init_early(void) { return 0; }
918static inline int cgroup_init(void) { return 0; }
919static inline void cgroup_fork(struct task_struct *p) {}
920static inline void cgroup_post_fork(struct task_struct *p) {}
921static inline void cgroup_exit(struct task_struct *p, int callbacks) {}
922

--- 16 unchanged lines hidden ---