cgroups.7: Relocate "Release notification" subsection

No text changes.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-10-07 13:01:32 +02:00
parent 3b6c1d46ef
commit c91a9f8acb
1 changed files with 22 additions and 22 deletions

View File

@ -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)"