diff options
author | Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp> | 2009-06-26 14:51:06 +0900 |
---|---|---|
committer | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2009-06-29 16:51:10 +0530 |
commit | 1c29610af69bf3bb0e088ed3eca770589849b0da (patch) | |
tree | a6ed2493eff33c99d37f9368082ae294840fba17 /include/libcgroup.h | |
parent | afbbee67863b4debf4ec849ff3d6a3f1f21b73ef (diff) | |
download | libcg-1c29610af69bf3bb0e088ed3eca770589849b0da.tar.gz libcg-1c29610af69bf3bb0e088ed3eca770589849b0da.tar.xz libcg-1c29610af69bf3bb0e088ed3eca770589849b0da.zip |
Add the library function cgroup_register_unchanged_process().
Hi,
Changelog of v6:
================
* No change.
Changelog of v5:
================
* Rebase the patch to the latest code.
Changelog of v4:
================
* No change.
Changelog of v3:
================
* No change.
Changelog of v2:
================
* New patch.
Description:
============
This patch adds the library function cgroup_register_unchanged_process()
for notifying cgrulesengd daemon of the unchanged process.
Thanks
Ken'ichi Ohmichi
Signed-off-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Diffstat (limited to 'include/libcgroup.h')
-rw-r--r-- | include/libcgroup.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libcgroup.h b/include/libcgroup.h index 8707412..953703b 100644 --- a/include/libcgroup.h +++ b/include/libcgroup.h @@ -324,6 +324,15 @@ int cgroup_get_task_begin(char *cgroup, char *controller, void **handle, pid_t *pid); /** + * Register the unchanged process to a cgrulesengd daemon. + * If the daemon does not work, this function returns 0 as success. + * @param pid: The process id + * @param flags Bit flags to change the behavior, as defined above + * @return 0 on success, > 0 on error. + */ +int cgroup_register_unchanged_process(pid_t pid, int flags); + +/** * Read the next task value * @handle: The handle used for iterating * @pid: The variable where the value will be stored |