• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/kernel/

Lines Matching defs:cg

279 	struct css_set *cg;
327 struct css_set *cg = container_of(obj, struct css_set, rcu_head);
328 kfree(cg);
337 static void __put_css_set(struct css_set *cg, int taskexit)
346 if (atomic_add_unless(&cg->refcount, -1, 1))
349 if (!atomic_dec_and_test(&cg->refcount)) {
355 hlist_del(&cg->hlist);
358 list_for_each_entry_safe(link, saved_link, &cg->cg_links,
374 call_rcu(&cg->rcu_head, free_css_set_rcu);
380 static inline void get_css_set(struct css_set *cg)
382 atomic_inc(&cg->refcount);
385 static inline void put_css_set(struct css_set *cg)
387 __put_css_set(cg, 0);
390 static inline void put_css_set_taskexit(struct css_set *cg)
392 __put_css_set(cg, 1);
397 * @cg: candidate css_set being tested
402 * Returns true if "cg" matches "old_cg" except for the hierarchy
405 static bool compare_css_sets(struct css_set *cg,
412 if (memcmp(template, cg->subsys, sizeof(cg->subsys))) {
426 l1 = &cg->cg_links;
435 if (l1 == &cg->cg_links) {
489 struct css_set *cg;
510 hlist_for_each_entry(cg, node, hhead, hlist) {
511 if (!compare_css_sets(cg, oldcg, cgrp, template))
515 return cg;
557 * @cg: the css_set to be linked
561 struct css_set *cg, struct cgroup *cgrp)
568 link->cg = cg;
576 list_add_tail(&link->cg_link_list, &cg->cg_links);
1533 struct css_set *cg;
1535 hlist_for_each_entry(cg, node, hhead, hlist)
1536 link_css_set(&tmp_cg_links, cg, root_cgrp);
1704 struct css_set *cg;
1730 cg = tsk->cgroups;
1731 get_css_set(cg);
1737 newcg = find_css_set(cg, cgrp);
1738 put_css_set(cg);
1768 put_css_set(cg);
2308 count += atomic_read(&link->cg->refcount);
2323 struct css_set *cg;
2333 cg = link->cg;
2334 } while (list_empty(&cg->tasks));
2336 it->task = cg->tasks.next;
2389 /* If the iterator cg is NULL, we have no tasks */
2396 if (l == &link->cg->tasks) {
2510 cgroup_iter_start(scan->cg, &it);
2511 while ((p = cgroup_iter_next(scan->cg, &it))) {
2544 cgroup_iter_end(scan->cg, &it);
3735 struct css_set *cg;
3739 hlist_for_each_entry_safe(cg, node, tmp, bucket, hlist) {
3741 if (cg->subsys[ss->subsys_id])
3744 hlist_del(&cg->hlist);
3746 cg->subsys[ss->subsys_id] = css;
3748 new_bucket = css_set_hash(cg->subsys);
3749 hlist_add_head(&cg->hlist, new_bucket);
3800 struct css_set *cg = link->cg;
3802 hlist_del(&cg->hlist);
3803 BUG_ON(!cg->subsys[ss->subsys_id]);
3804 cg->subsys[ss->subsys_id] = NULL;
3805 hhead = css_set_hash(cg->subsys);
3806 hlist_add_head(&cg->hlist, hhead);
3841 init_css_set_link.cg = &init_css_set;
4144 struct css_set *cg;
4172 cg = tsk->cgroups;
4175 if (cg)
4176 put_css_set_taskexit(cg);
4196 struct css_set *cg;
4223 cg = tsk->cgroups;
4224 get_css_set(cg);
4263 put_css_set(cg);
4289 put_css_set(cg);
4774 struct css_set *cg;
4778 cg = rcu_dereference(current->cgroups);
4779 list_for_each_entry(link, &cg->cg_links, cg_link_list) {
4804 struct css_set *cg = link->cg;
4807 seq_printf(seq, "css_set %p\n", cg);
4808 list_for_each_entry(task, &cg->tasks, cg_list) {