diff options
author | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2008-08-06 17:47:41 +0000 |
---|---|---|
committer | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2008-08-06 17:47:41 +0000 |
commit | 1d408fb14ebad88d254f58f733ad6b0ffe4adaf6 (patch) | |
tree | 372b1d2c30d3af9a1bc0199cdd21737cbe702221 /libcgroup.h | |
parent | be7f8e221816cbfd0b69f7593f962133dab2fecf (diff) | |
download | libcg-1d408fb14ebad88d254f58f733ad6b0ffe4adaf6.tar.gz libcg-1d408fb14ebad88d254f58f733ad6b0ffe4adaf6.tar.xz libcg-1d408fb14ebad88d254f58f733ad6b0ffe4adaf6.zip |
libcgroup: Add new API to get cgroup data structure from filesystem
New API to get the cgroup datastructure from the mounted filesystem.
It accepts the cgroup datastructure with the name of the cgroup
which has to populated across various mountpoints.
TODO:
More testing.
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Cc: Dan Smith <danms@us.ibm.com>
Cc: Paul Menage <menage@google.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@117 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'libcgroup.h')
-rw-r--r-- | libcgroup.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcgroup.h b/libcgroup.h index 8c12443..89f923a 100644 --- a/libcgroup.h +++ b/libcgroup.h @@ -164,6 +164,7 @@ int cgroup_modify_cgroup(struct cgroup *cgroup); int cgroup_create_cgroup(struct cgroup *cgroup, int ignore_ownership); int cgroup_delete_cgroup(struct cgroup *cgroup, int ignore_migration); int cgroup_attach_task_pid(struct cgroup *cgroup, pid_t tid); +struct cgroup *cgroup_get_cgroup(struct cgroup *cgroup); /* The wrappers for filling libcg structures */ |