Lines Matching refs:of

23  * is avoiding frequent destruction in the middle of consecutive read calls
54 * cgroup_attach_task_all - attach task 'tsk' to all cgroups of task 'from'
55 * @from: attach to all cgroups of a given task
98 * can slip out of migration through forking.
165 * Reading this file can return large amounts of data if a cgroup has
166 * *lots* of attached tasks. So it may need several calls to read(),
179 * A pidlist is a list of pids that virtually represents the contents of one
180 * of the cgroup files ("procs" or "tasks"). We keep a list of such pidlists,
193 /* array of xids */
197 /* each of these stored in a list by its cgroup */
247 * Returns the number of unique elements.
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
306 * of the use count, or returns NULL with no locks held if we're out of
412 struct kernfs_open_file *of = s->private;
413 struct cgroup_file_ctx *ctx = of->priv;
459 /* If we're off the end of the array, we're done */
471 struct kernfs_open_file *of = s->private;
472 struct cgroup_file_ctx *ctx = of->priv;
483 struct kernfs_open_file *of = s->private;
484 struct cgroup_file_ctx *ctx = of->priv;
509 static ssize_t cgroup1_procs_write_func(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off,
518 cgrp = cgroup_kn_lock_live(of->kn, false);
531 * to check permissions on one of them. Check permissions using the
534 cred = of->file->f_cred;
554 cgroup_kn_unlock(of->kn);
559 static ssize_t cgroup1_procs_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)
561 return cgroup1_procs_write_func(of, buf, nbytes, off, true);
564 static ssize_t cgroup1_tasks_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)
566 return cgroup1_procs_write_func(of, buf, nbytes, off, false);
569 static ssize_t cgroup_release_agent_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)
580 ctx = of->priv;
582 !file_ns_capable(of->file, &init_user_ns, CAP_SYS_ADMIN))
585 cgrp = cgroup_kn_lock_live(of->kn, false);
592 cgroup_kn_unlock(of->kn);
698 * cgroup_mutex is also necessary to guarantee an atomic snapshot of
789 * configured release agent with the name of the cgroup (path
790 * relative to the root of cgroup file system) as the argument.
796 * user task will 'mkdir' a child cgroup of this cgroup. That's ok.
806 * release agent task. We don't bother to wait because the caller of
807 * this routine has no use for the exit status of the release agent
857 * cgroup_rename - Only allow simple rename of directories in place.
1070 * In absense of 'none', 'name=' or subsystem name options,
1177 * The guts of cgroup1 mount - find or create cgroup_root to use.
1191 /* First find the desired set of subsystems */
1198 * Destruction of cgroup root is asynchronous, so subsystems may