diff options
author | Tejun Heo <tj@kernel.org> | 2013-11-22 18:32:25 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-11-22 18:32:25 -0500 |
commit | edab95103d3a1eb5e3faf977eae4ad0b5bf5669c (patch) | |
tree | 812c111f94b0ae31bf88b49e7c37a7f5ba353eef /Documentation/cgroups | |
parent | e5fca243abae1445afbfceebda5f08462ef869d3 (diff) | |
parent | b36824c75c7855585d6476eef2b234f6e0e68872 (diff) |
cgroup: Merge branch 'memcg_event' into for-3.14
Merge v3.12 based patch series to move cgroup_event implementation to
memcg into for-3.14. The following two commits cause a conflict in
kernel/cgroup.c
2ff2a7d03bbe4 ("cgroup: kill css_id")
79bd9814e5ec9 ("cgroup, memcg: move cgroup_event implementation to memcg")
Each patch removes a struct definition from kernel/cgroup.c. As the
two are adjacent, they cause a context conflict. Easily resolved by
removing both structs.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'Documentation/cgroups')
-rw-r--r-- | Documentation/cgroups/cgroups.txt | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Documentation/cgroups/cgroups.txt b/Documentation/cgroups/cgroups.txt index 638bf17ff869..821de56d1580 100644 --- a/Documentation/cgroups/cgroups.txt +++ b/Documentation/cgroups/cgroups.txt | |||
@@ -24,7 +24,6 @@ CONTENTS: | |||
24 | 2.1 Basic Usage | 24 | 2.1 Basic Usage |
25 | 2.2 Attaching processes | 25 | 2.2 Attaching processes |
26 | 2.3 Mounting hierarchies by name | 26 | 2.3 Mounting hierarchies by name |
27 | 2.4 Notification API | ||
28 | 3. Kernel API | 27 | 3. Kernel API |
29 | 3.1 Overview | 28 | 3.1 Overview |
30 | 3.2 Synchronization | 29 | 3.2 Synchronization |
@@ -472,25 +471,6 @@ you give a subsystem a name. | |||
472 | The name of the subsystem appears as part of the hierarchy description | 471 | The name of the subsystem appears as part of the hierarchy description |
473 | in /proc/mounts and /proc/<pid>/cgroups. | 472 | in /proc/mounts and /proc/<pid>/cgroups. |
474 | 473 | ||
475 | 2.4 Notification API | ||
476 | -------------------- | ||
477 | |||
478 | There is mechanism which allows to get notifications about changing | ||
479 | status of a cgroup. | ||
480 | |||
481 | To register a new notification handler you need to: | ||
482 | - create a file descriptor for event notification using eventfd(2); | ||
483 | - open a control file to be monitored (e.g. memory.usage_in_bytes); | ||
484 | - write "<event_fd> <control_fd> <args>" to cgroup.event_control. | ||
485 | Interpretation of args is defined by control file implementation; | ||
486 | |||
487 | eventfd will be woken up by control file implementation or when the | ||
488 | cgroup is removed. | ||
489 | |||
490 | To unregister a notification handler just close eventfd. | ||
491 | |||
492 | NOTE: Support of notifications should be implemented for the control | ||
493 | file. See documentation for the subsystem. | ||
494 | 474 | ||
495 | 3. Kernel API | 475 | 3. Kernel API |
496 | ============= | 476 | ============= |