diff options
author | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2009-01-14 17:33:05 +0000 |
---|---|---|
committer | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2009-01-14 17:33:05 +0000 |
commit | 267249123c6e97d8b3f13db1cf0f260f8244705a (patch) | |
tree | 5aa90e97f95b7a5ea046ac723add13091f7a4c8e /tests/test_functions.c | |
parent | 3ab8f66d9afc44d39b6a7b95a9651d744b74bb23 (diff) | |
download | libcg-267249123c6e97d8b3f13db1cf0f260f8244705a.tar.gz libcg-267249123c6e97d8b3f13db1cf0f260f8244705a.tar.xz libcg-267249123c6e97d8b3f13db1cf0f260f8244705a.zip |
libcgrouptest: rename get_controller() to is_subsystem_enabled()
From: Sudhir Kumar <skumar@linux.vnet.ibm.com>
This patch renames the function get_controllers() to a more
meaningful name is_subsystem_enabled().
history:
The code in the patch is part of a patch sent in an earlier patchset,
which somehow got dropped (looks an older version of that patch was
merged to the tree). Adding this patch makes everything upstream upto
the discussion held on the list.
Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
Acked-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@314 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'tests/test_functions.c')
-rw-r--r-- | tests/test_functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_functions.c b/tests/test_functions.c index 6af9efd..80e4e90 100644 --- a/tests/test_functions.c +++ b/tests/test_functions.c @@ -321,7 +321,7 @@ void test_cgroup_delete_cgroup(int retcode, struct cgroup *cgrp, * @param name the name of the controller to be checked * @param exist set to 1 if the controller exists */ -void get_controllers(const char *name, int *exist) +void is_subsystem_enabled(const char *name, int *exist) { int hierarchy, num_cgroups, enabled; FILE *fd; |