> Thanks Balbir- > Your welcome
> I thought that should work, but I was getting thrown by another issue > entirely. > > Once I have a cgroup struct from cgroup_get_cgroup(), it would be helpful to > know what controllers it contains. I can get a cgroup_controller struct > with cgroup_get_controller(), but I need to know the controller name is to > get that. > > Is there a method to return the list of controller names (or controller > structs) that are in a cgroup? I see what you mean, this is the tricky bit and probably an area where we could improve. We assume the programmer knows what controller is being dealt with (since the control file names are controller specific). For example, lets say we want CPU control, then one could use cgroup_get_controller(cgroup, "cpu") to return the controller and then use the controller further to read values If we wanted to set any value, we know the file to set (say cpu.shares), then we do cgroup_add_controller(cgroup, "cpu") and set values in it I hope that helps, FYI: We need to work on a layer 2 API that abstracts all these details and creates more meaningful names like set_cpu_shares(), get_cpu_shares(), etc. If you don't mind, can I ask how you are using libcgroup, what is the use case? Balbir Singh ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense.. http://p.sf.net/sfu/splunk-d2d-c1 _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel