split cgroup handling into discrete backends
- refactor cgroup into two backends, the classic cgfs driver and the new
cgmanager. Instead of lxc_handler knowing about the internals of each,
have it just store an opaque pointer to a struct that is private to
each backend.
- rename a couple of cgroup functions for consistency: those that are
considered an API (ie. exported by lxc.h) begin with lxc_ and those that
are not are just cgroup_*
- made as many backend routines static as possible, only cg*_ops_init is
exported
- made a nrtasks op which is needed by the utmp code for monitoring
container shutdown, currently only implemented for the cgfs backend
Signed-off-by:
Dwight Engen <dwight.engen@oracle.com>
Signed-off-by:
Serge Hallyn <serge.hallyn@ubuntu.com>
Showing
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
src/lxc/cgroup.c
0 → 100644
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment