From: Daniel Wagner <[email protected]>

Hi,

Here is the RFC of the cgroup stuff we were discussing at our F2F. 
It is still very rough, it doesn't handle all the error cases (there are
plenty) but it give a general idea where I am heading to. 

I have not yet send the kernel patches needed for this. They are not
needed for this version. Instead I am using the net_cls controller
for the time beeing. So in case you want to play with it umount net_cls
first and then ConnMan can remount it, e.g.

sudo umount /sys/fs/cgroup/net_cls

should do the trick. 

cheers,
daniel

Daniel Wagner (7):
  cgroup: Add cgroup infrastructure
  cgroup: Mount cgroup controller
  cgroup: Add support for cgroup creation and task assigning
  gdbus: Add GetConnectionUnixProcessID support
  device: Hook cgroup support into newlink/dellink
  session: Get PID of session
  session: Assign session to cgroup

 Makefile.am    |   2 +-
 gdbus/gdbus.h  |   6 ++
 gdbus/object.c |  89 ++++++++++++++++
 src/cgroup.c   | 328 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/connman.h  |   6 ++
 src/detect.c   |   4 +
 src/main.c     |   2 +
 src/session.c  |  55 ++++++++++
 8 files changed, 491 insertions(+), 1 deletion(-)
 create mode 100644 src/cgroup.c

-- 
1.7.12.rc1.16.g05a20c8

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to