Lines Matching defs:to
40 * pidlist destructions need to be flushed on cgroup destruction. Use a
54 * cgroup_attach_task_all - attach task 'tsk' to all cgroups of task 'from'
55 * @from: attach to all cgroups of a given task
56 * @tsk: the task to be attached
90 * cgroup_trasnsfer_tasks - move tasks from one cgroup to another
91 * @to: cgroup to which the tasks will be moved
96 * is guaranteed to be either visible in the source cgroup after the
100 int cgroup_transfer_tasks(struct cgroup *to, struct cgroup *from)
108 if (cgroup_on_dfl(to)) {
112 ret = cgroup_migrate_vet_dst(to);
123 list_for_each_entry(link, &from->cset_links, cset_link) cgroup_migrate_add_src(link->cset, to, &mgctx);
150 TRACE_CGROUP_PATH(transfer_tasks, to, task, false);
166 * *lots* of attached tasks. So it may need several calls to read(),
182 * to the cgroup.
186 * used to find which pidlist is wanted. doesn't change as long as
199 /* pointer to the cgroup we belong to, for list removal purposes */
206 * Used to destroy all pidlists lingering waiting for destroy timer. None
255 * edge cases first; no work needs to be done for either
269 /* dest always points to where the next unique element goes */
281 * making it impossible to use, for example, single rbtree of member tasks
283 * per open file is dangerous, so cgroup had to implement shared pool of
351 * enough space - tough. This race is indistinguishable to the
372 if (pid > 0) { /* make sure to only use valid results */
400 * next pid to display; the seq_file iterator is a pointer to the pid
407 * Initially we receive a position value that corresponds to
409 * after a seek to the start). Use a binary-search to find the
410 * next pid to display, if any
463 /* Update the abstract position to be the actual pid that we found */
489 * Advance to the next pid in the array. If this goes off the
531 * to check permissions on one of them. Check permissions using the
532 * credentials from file open to protect against inherited fd attacks.
578 * require capabilities to set release agent.
698 * cgroup_mutex is also necessary to guarantee an atomic snapshot of
716 * @stats: cgroupstats to fill information into
717 * @dentry: A dentry entry belonging to the cgroup for which stats have
720 * Build and fill cgroupstats so that taskstats can export it to user
730 /* it should be kernfs_node belonging to cgroupfs and is a directory */
790 * relative to the root of cgroup file system) as the argument.
792 * Most likely, this user command will try to rmdir this cgroup.
795 * attached to this cgroup before it is removed, or that some other
799 * to continue to serve a useful existence. Next time it's released,
802 * The final arg to call_usermodehelper() is UMH_WAIT_EXEC, which
806 * release agent task. We don't bother to wait because the caller of
864 /* do not accept '\n' to prevent making /proc/<pid>/cgroup unparsable */
1010 * require capabilities to set release agent.
1071 * let's default to 'all'.
1087 * We either have to specify by name or by subsystems. (So all
1134 /* Don't allow flags or name to change at remount */
1177 * The guts of cgroup1 mount - find or create cgroup_root to use.
1180 * On success it stashes a reference to cgroup_root into given
1200 * dying subsystems. We just need to ensure that the ones
1289 /* Check if the caller has permission to mount. */
1322 * Used to destroy pidlists and separate to serve as flush domain.
1323 * Cap @max_active to 1 too.