Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71411
b: refs/heads/master
c: bbcb81d
h: refs/heads/master
i:
  71409: 8ebec8a
  71407: fe0ddb2
v: v3
  • Loading branch information
Paul Menage authored and Linus Torvalds committed Oct 19, 2007
1 parent f2e9ec6 commit b7be2b0
Show file tree
Hide file tree
Showing 3 changed files with 369 additions and 2 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: ddbcc7e8e50aefe467c01cac3dec71f118cd8ac2
refs/heads/master: bbcb81d09104f0d440974b994c1fc508ccbe9503
10 changes: 10 additions & 0 deletions trunk/include/linux/cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,16 @@ int cgroup_is_removed(const struct cgroup *cont);

int cgroup_path(const struct cgroup *cont, char *buf, int buflen);

int __cgroup_task_count(const struct cgroup *cont);
static inline int cgroup_task_count(const struct cgroup *cont)
{
int task_count;
rcu_read_lock();
task_count = __cgroup_task_count(cont);
rcu_read_unlock();
return task_count;
}

/* Return true if the cgroup is a descendant of the current cgroup */
int cgroup_is_descendant(const struct cgroup *cont);

Expand Down
Loading

0 comments on commit b7be2b0

Please sign in to comment.