<div dir="ltr"><div><div><div><div><div><div><div>Hi All,<br><br>I have been using linux container for some time as a user and now getting interested to know how it is internally working, I started looking for internals and could make that it is using cgroups under the hood.<br></div>The docs mention that it is using many other kernel pieces, I see the code being implemented in C ( Ah I am not a C guy but am willing to play with it).<br></div>I wanted to know which system librarary is being used in c code that invokes cgroup call, I looked at the code at <br><a href="https://github.com/lxc/lxc/blob/master/src/lxc/lxccontainer.c">https://github.com/lxc/lxc/blob/master/src/lxc/lxccontainer.c</a><br><br></div>and see <span class="">#include "cgroup.h" being included.<br></span></div><div><span class="">cgroup.c </span><span class="">does not seem to contain the reference of <a href="http://libcg.sourceforge.net/">http://libcg.sourceforge.net/</a> library which I was expecting.<br></span></div></div><span class="">Can someone provide the high level code flow, I can take it from there.<br><br></span></div><span class="">Sorry if I am asking stupid question due to my ignorance of C understanding.<br><br></span></div><span class="">Thanks,<br>Vicky<br></span></div>