mirror of https://github.com/mkerrisk/man-pages
cgroups.7: Define containment rules for cgroup.threads
Reviewed-by: Tejun Heo <tj@kernel.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
446d164326
commit
d84e558ef3
|
@ -1328,9 +1328,30 @@ to the
|
|||
files in different cgroups inside the subtree.
|
||||
The threads of a process must all reside in the same threaded subtree.
|
||||
.PP
|
||||
The
|
||||
As with writing to
|
||||
.IR cgroup.procs ,
|
||||
some containment rules apply when writing to the
|
||||
.I cgroup.threads
|
||||
file is writable only for the cgroups inside a threaded subtree.
|
||||
file:
|
||||
.IP * 3
|
||||
The writer must have write permission on the
|
||||
cgroup.threads
|
||||
file in the destination cgroup.
|
||||
.IP *
|
||||
The writer must have write permission on the
|
||||
.I cgroup.procs
|
||||
file in the common ancestor of the source and destination cgroups.
|
||||
(In some cases,
|
||||
the common ancestor may be the source or destination cgroup itself.)
|
||||
.IP *
|
||||
The source and destination cgroups must be in the same threaded subtree.
|
||||
(Outside a threaded subtree, an attempt to move a thread by writing
|
||||
its thread ID to the
|
||||
.I cgroup.threads
|
||||
file in a different
|
||||
.I domain
|
||||
cgroup fails with the error
|
||||
.BR EOPNOTSUPP .)
|
||||
.PP
|
||||
The
|
||||
.I cgroup.threads
|
||||
|
|
Loading…
Reference in New Issue