Signed-off-by: Dhaval Giani <[email protected]>

---
 include/libcgroup/init.h |    2 ++
 src/libcgroup-internal.h |    7 +++++++
 2 files changed, 9 insertions(+)

Index: libcg/src/libcgroup-internal.h
===================================================================
--- libcg.orig/src/libcgroup-internal.h
+++ libcg/src/libcgroup-internal.h
@@ -86,6 +86,7 @@ struct cgroup {
        gid_t tasks_gid;
        uid_t control_uid;
        gid_t control_gid;
+       struct cgroup_context_s *context;
 };
 
 
@@ -128,6 +129,12 @@ struct cgroup_tree_handle {
        int flags;
 };
 
+struct cgroup_context_s {
+       char *cg_namespace[CG_CONTROLLER_MAX];
+       struct cg_mount_table_s mount[CG_CONTROLLER_MAX];
+       unsigned size;
+};
+
 /**
  * per thread errno variable, to be used when return code is ECGOTHER
  */
Index: libcg/include/libcgroup/init.h
===================================================================
--- libcg.orig/include/libcgroup/init.h
+++ libcg/include/libcgroup/init.h
@@ -49,6 +49,8 @@ int cgroup_get_subsys_mount_point(const 
  * @}
  * @}
  */
+
+struct cgroup_context_s;
 __END_DECLS
 
 #endif /* _LIBCGROUP_INIT_H */



------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to