diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-10-07 13:01:32 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-10-07 23:01:35 +0200 |
| commit | c91a9f8acb86403e960087eaf217991d8e4a2a62 (patch) | |
| tree | a970693dd0a601901788f757a58128e902e181e1 | |
| parent | 3b6c1d46ef8c6683209351f38dea8a705f90c217 (diff) | |
| download | man-pages-c91a9f8acb86403e960087eaf217991d8e4a2a62.tar.gz | |
cgroups.7: Relocate "Release notification" subsection
No text changes.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
| -rw-r--r-- | man7/cgroups.7 | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/man7/cgroups.7 b/man7/cgroups.7 index b6bc294f98..dd4fa5980b 100644 --- a/man7/cgroups.7 +++ b/man7/cgroups.7 @@ -278,28 +278,6 @@ remove the corresponding directory pathname. Note that files in a cgroup directory cannot and need not be removed. .\" -.SS Release notification -A special file in each cgroup hierarchy, -.IR release_agent , -can be used to register a program to handle cgroups which become newly empty. -The program will be called each time a cgroup marked for -autoremove becomes empty and childless. -The cgroup path will be provided as the first command-line argument. -The cgroup must be marked as eligible for autoremove by writing '1' into its -.IR notify_on_release -file; -this value is inherited by newly created child cgroups. - -A new feature in cgroups v2 is the -.I cgroup.populated -file. -This reads 0 if there are no processes in the cgroup or its descendants, -and 1 otherwise. -It can be watched for changes using -.BR inotify (7). -This allows user-space applications to efficiently watch cgroups -for autoremove conditions. -.\" .SS Cgroups version 2 In cgroups v2, all mounted controllers reside in a single unified hierarchy. @@ -465,6 +443,28 @@ in a cgroup (and its descendants). Further information can be found in the kernel source file .IR Documentation/cgroup-v1/pids.txt . .\" +.SS Release notification +A special file in each cgroup hierarchy, +.IR release_agent , +can be used to register a program to handle cgroups which become newly empty. +The program will be called each time a cgroup marked for +autoremove becomes empty and childless. +The cgroup path will be provided as the first command-line argument. +The cgroup must be marked as eligible for autoremove by writing '1' into its +.IR notify_on_release +file; +this value is inherited by newly created child cgroups. + +A new feature in cgroups v2 is the +.I cgroup.populated +file. +This reads 0 if there are no processes in the cgroup or its descendants, +and 1 otherwise. +It can be watched for changes using +.BR inotify (7). +This allows user-space applications to efficiently watch cgroups +for autoremove conditions. +.\" .SS /proc files .TP .IR /proc/cgroups " (since Linux 2.6.24)" |
