On 28 May 2015 at 04:30, Zefan Li lize...@huawei.com wrote:
On 2015/5/27 20:37, Dimitri John Ledkov wrote:
On 27 May 2015 at 12:22, Zefan Li lize...@huawei.com wrote:
On 2015/5/27 6:07, Dimitri John Ledkov wrote:
Add a kernel API to send a proc connector notification that a cgroup
has become
On 27 May 2015 at 12:22, Zefan Li lize...@huawei.com wrote:
On 2015/5/27 6:07, Dimitri John Ledkov wrote:
Add a kernel API to send a proc connector notification that a cgroup
has become empty. A userspace daemon can then act upon such
information, and usually clean-up and remove such a group
for this notification type.
For precisely when cgroups should emit this event, see next patch
against kernel/cgroup.c.
Signed-off-by: Dimitri John Ledkov dimitri.j.led...@intel.com
---
drivers/connector/cn_proc.c | 56
include/linux/cn_proc.h | 6 +
include
connector API.
Specifically, if there are no listeners, no events are emitted. If
only certain events are desired, the userspace proc connector listener
can filter them in the userspace or install a BPF on the socket to
ignore things it doesn't care about.
Signed-off-by: Dimitri John Ledkov