Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127735
b: refs/heads/master
c: 4d316fc
h: refs/heads/master
i:
  127733: c337c53
  127731: 7284bea
  127727: 25c2310
v: v3
  • Loading branch information
Ben Dooks committed Jan 8, 2009
1 parent f9ad8ad commit 84e4de2
Show file tree
Hide file tree
Showing 227 changed files with 2,179 additions and 9,109 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 894bcdfb1a40a7c5032242c380b956aab106e05d
refs/heads/master: 4d316fc5a34b073da4145a203101ec5b9553a634
9 changes: 4 additions & 5 deletions trunk/Documentation/cgroups/cgroups.txt
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ Each cgroup is represented by a directory in the cgroup file system
containing the following files describing that cgroup:

- tasks: list of tasks (by pid) attached to that cgroup
- releasable flag: cgroup currently removeable?
- notify_on_release flag: run the release agent on exit?
- release_agent: the path to use for release notifications (this file
exists in the top cgroup only)
Expand Down Expand Up @@ -359,7 +360,7 @@ Now you want to do something with this cgroup.

In this directory you can find several files:
# ls
notify_on_release tasks
notify_on_release releasable tasks
(plus whatever files added by the attached subsystems)

Now attach your shell to this cgroup:
Expand Down Expand Up @@ -478,6 +479,7 @@ newly-created cgroup if an error occurs after this subsystem's
create() method has been called for the new cgroup).

void pre_destroy(struct cgroup_subsys *ss, struct cgroup *cgrp);
(cgroup_mutex held by caller)

Called before checking the reference count on each subsystem. This may
be useful for subsystems which have some extra references even if
Expand All @@ -496,7 +498,6 @@ remain valid while the caller holds cgroup_mutex.

void attach(struct cgroup_subsys *ss, struct cgroup *cgrp,
struct cgroup *old_cgrp, struct task_struct *task)
(cgroup_mutex held by caller)

Called after the task has been attached to the cgroup, to allow any
post-attachment activity that requires memory allocations or blocking.
Expand All @@ -510,7 +511,6 @@ void exit(struct cgroup_subsys *ss, struct task_struct *task)
Called during task exit.

int populate(struct cgroup_subsys *ss, struct cgroup *cgrp)
(cgroup_mutex held by caller)

Called after creation of a cgroup to allow a subsystem to populate
the cgroup directory with file entries. The subsystem should make
Expand All @@ -520,15 +520,14 @@ method can return an error code, the error code is currently not
always handled well.

void post_clone(struct cgroup_subsys *ss, struct cgroup *cgrp)
(cgroup_mutex held by caller)

Called at the end of cgroup_clone() to do any paramater
initialization which might be required before a task could attach. For
example in cpusets, no task may attach before 'cpus' and 'mems' are set
up.

void bind(struct cgroup_subsys *ss, struct cgroup *root)
(cgroup_mutex and ss->hierarchy_mutex held by caller)
(cgroup_mutex held by caller)

Called when a cgroup subsystem is rebound to a different hierarchy
and root cgroup. Currently this will only involve movement between
Expand Down
Loading

0 comments on commit 84e4de2

Please sign in to comment.