summaryrefslogtreecommitdiffstats
path: root/include/libcgroup.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libcgroup.h')
-rw-r--r--include/libcgroup.h9
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