]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
libcgroup: New API interfaces for task placement
authorDhaval Giani <dhaval@linux.vnet.ibm.com>
Wed, 13 Aug 2008 19:58:05 +0000 (19:58 +0000)
committerDhaval Giani <dhaval@linux.vnet.ibm.com>
Wed, 13 Aug 2008 19:58:05 +0000 (19:58 +0000)
commitbc1e2f6df728f682d4d09a725a62e02547d833db
treeb662f1e2623ca270d2eecd5f87a1ccd483e5fda2
parent2fa28d8f1be10453f31deb1504ad6b5e017db5b9
libcgroup: New API interfaces for task placement

From: Vivek Goyal <vgoyal@redhat.com>

Enhancement to libcg to do following.
- Parse the /etc/cgrules.conf file and place the task in the right cgroup.
- Exported two APIs which can place the task based on /etc/cgrules.conf
  or based on cgroup explicitly specified by the caller.

- There can be multiple users.
        - PAM module (pam_cgroup)
        - cgexec tool
        - cgclassify tool
        - APIs can be directly used by other cgroup aware user progarams.
        - Classification daemon

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@136 4f4bb910-9a46-0410-90c8-c897d4f1cd53
api.c
libcgroup-internal.h
libcgroup.h
samples/cgrules.conf [new file with mode: 0644]