Home
last modified time | relevance | path

Searched refs:cgroup_subsys_state (Results 1 – 30 of 30) sorted by relevance

/linux-4.1.27/include/linux/
Dcgroup-defs.h85 struct cgroup_subsys_state { struct
96 struct cgroup_subsys_state *parent; argument
170 struct cgroup_subsys_state *subsys[CGROUP_SUBSYS_COUNT];
204 struct cgroup_subsys_state self;
241 struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
352 u64 (*read_u64)(struct cgroup_subsys_state *css, struct cftype *cft);
356 s64 (*read_s64)(struct cgroup_subsys_state *css, struct cftype *cft);
371 int (*write_u64)(struct cgroup_subsys_state *css, struct cftype *cft,
376 int (*write_s64)(struct cgroup_subsys_state *css, struct cftype *cft,
398 struct cgroup_subsys_state *(*css_alloc)(struct cgroup_subsys_state *parent_css);
[all …]
Dcgroup.h42 static inline void css_get(struct cgroup_subsys_state *css) in css_get()
55 static inline void css_get_many(struct cgroup_subsys_state *css, unsigned int n) in css_get_many()
72 static inline bool css_tryget(struct cgroup_subsys_state *css) in css_tryget()
89 static inline bool css_tryget_online(struct cgroup_subsys_state *css) in css_tryget_online()
102 static inline void css_put(struct cgroup_subsys_state *css) in css_put()
115 static inline void css_put_many(struct cgroup_subsys_state *css, unsigned int n) in css_put_many()
200 struct cgroup_subsys_state *of_css(struct kernfs_open_file *of);
208 static inline struct cgroup_subsys_state *seq_css(struct seq_file *seq) in seq_css()
319 static inline struct cgroup_subsys_state *task_css(struct task_struct *task, in task_css()
345 struct cgroup_subsys_state *css_next_child(struct cgroup_subsys_state *pos,
[all …]
Dblk_types.h16 struct cgroup_subsys_state;
79 struct cgroup_subsys_state *bi_css;
Dvmpressure.h36 extern struct cgroup_subsys_state *vmpressure_to_css(struct vmpressure *vmpr);
Dmemcontrol.h98 extern struct mem_cgroup *mem_cgroup_from_css(struct cgroup_subsys_state *css);
114 extern struct cgroup_subsys_state *mem_cgroup_css(struct mem_cgroup *memcg);
272 static inline struct cgroup_subsys_state
Dperf_event.h595 struct cgroup_subsys_state css;
/linux-4.1.27/net/core/
Dnetclassid_cgroup.c19 static inline struct cgroup_cls_state *css_cls_state(struct cgroup_subsys_state *css) in css_cls_state()
30 static struct cgroup_subsys_state *
31 cgrp_css_alloc(struct cgroup_subsys_state *parent_css) in cgrp_css_alloc()
42 static int cgrp_css_online(struct cgroup_subsys_state *css) in cgrp_css_online()
53 static void cgrp_css_free(struct cgroup_subsys_state *css) in cgrp_css_free()
69 static void cgrp_attach(struct cgroup_subsys_state *css, in cgrp_attach()
83 static u64 read_classid(struct cgroup_subsys_state *css, struct cftype *cft) in read_classid()
88 static int write_classid(struct cgroup_subsys_state *css, struct cftype *cft, in write_classid()
Dnetprio_cgroup.c89 static u32 netprio_prio(struct cgroup_subsys_state *css, struct net_device *dev) in netprio_prio()
108 static int netprio_set_prio(struct cgroup_subsys_state *css, in netprio_set_prio()
129 static struct cgroup_subsys_state *
130 cgrp_css_alloc(struct cgroup_subsys_state *parent_css) in cgrp_css_alloc()
132 struct cgroup_subsys_state *css; in cgrp_css_alloc()
141 static int cgrp_css_online(struct cgroup_subsys_state *css) in cgrp_css_online()
143 struct cgroup_subsys_state *parent_css = css->parent; in cgrp_css_online()
166 static void cgrp_css_free(struct cgroup_subsys_state *css) in cgrp_css_free()
171 static u64 read_prioidx(struct cgroup_subsys_state *css, struct cftype *cft) in read_prioidx()
221 static void net_prio_attach(struct cgroup_subsys_state *css, in net_prio_attach()
/linux-4.1.27/kernel/
Dcgroup_freezer.c44 struct cgroup_subsys_state css;
50 static inline struct freezer *css_freezer(struct cgroup_subsys_state *css) in css_freezer()
85 static struct cgroup_subsys_state *
86 freezer_css_alloc(struct cgroup_subsys_state *parent_css) in freezer_css_alloc()
105 static int freezer_css_online(struct cgroup_subsys_state *css) in freezer_css_online()
130 static void freezer_css_offline(struct cgroup_subsys_state *css) in freezer_css_offline()
144 static void freezer_css_free(struct cgroup_subsys_state *css) in freezer_css_free()
158 static void freezer_attach(struct cgroup_subsys_state *new_css, in freezer_attach()
247 static void update_if_frozen(struct cgroup_subsys_state *css) in update_if_frozen()
250 struct cgroup_subsys_state *pos; in update_if_frozen()
[all …]
Dcgroup.c194 static void kill_css(struct cgroup_subsys_state *css);
231 struct cgroup_subsys_state *parent_css = cgrp->self.parent; in cgroup_parent()
249 static struct cgroup_subsys_state *cgroup_css(struct cgroup *cgrp, in cgroup_css()
269 static struct cgroup_subsys_state *cgroup_e_css(struct cgroup *cgrp, in cgroup_e_css()
302 struct cgroup_subsys_state *cgroup_get_e_css(struct cgroup *cgrp, in cgroup_get_e_css()
305 struct cgroup_subsys_state *css; in cgroup_get_e_css()
330 struct cgroup_subsys_state *of_css(struct kernfs_open_file *of) in of_css()
510 static unsigned long css_set_hash(struct cgroup_subsys_state *css[]) in css_set_hash()
594 struct cgroup_subsys_state *template[]) in compare_css_sets()
661 struct cgroup_subsys_state *template[]) in find_existing_css_set()
[all …]
Dcpuset.c76 struct cgroup_subsys_state css;
135 static inline struct cpuset *css_cs(struct cgroup_subsys_state *css) in css_cs()
455 struct cgroup_subsys_state *css; in validate_change()
547 struct cgroup_subsys_state *pos_css; in update_domain_attr_tree()
629 struct cgroup_subsys_state *pos_css; in generate_sched_domains()
869 struct cgroup_subsys_state *pos_css; in update_cpumasks_hier()
1126 struct cgroup_subsys_state *pos_css; in update_nodemasks_hier()
1429 static int cpuset_can_attach(struct cgroup_subsys_state *css, in cpuset_can_attach()
1467 static void cpuset_cancel_attach(struct cgroup_subsys_state *css, in cpuset_cancel_attach()
1482 static void cpuset_attach(struct cgroup_subsys_state *css, in cpuset_attach()
[all …]
/linux-4.1.27/kernel/sched/
Dcpuacct.c30 struct cgroup_subsys_state css;
36 static inline struct cpuacct *css_ca(struct cgroup_subsys_state *css) in css_ca()
59 static struct cgroup_subsys_state *
60 cpuacct_css_alloc(struct cgroup_subsys_state *parent_css) in cpuacct_css_alloc()
90 static void cpuacct_css_free(struct cgroup_subsys_state *css) in cpuacct_css_free()
135 static u64 cpuusage_read(struct cgroup_subsys_state *css, struct cftype *cft) in cpuusage_read()
147 static int cpuusage_write(struct cgroup_subsys_state *css, struct cftype *cft, in cpuusage_write()
Dcore.c7958 static inline struct task_group *css_tg(struct cgroup_subsys_state *css) in css_tg()
7963 static struct cgroup_subsys_state *
7964 cpu_cgroup_css_alloc(struct cgroup_subsys_state *parent_css) in cpu_cgroup_css_alloc()
7981 static int cpu_cgroup_css_online(struct cgroup_subsys_state *css) in cpu_cgroup_css_online()
7991 static void cpu_cgroup_css_free(struct cgroup_subsys_state *css) in cpu_cgroup_css_free()
7998 static void cpu_cgroup_css_offline(struct cgroup_subsys_state *css) in cpu_cgroup_css_offline()
8010 static int cpu_cgroup_can_attach(struct cgroup_subsys_state *css, in cpu_cgroup_can_attach()
8028 static void cpu_cgroup_attach(struct cgroup_subsys_state *css, in cpu_cgroup_attach()
8037 static void cpu_cgroup_exit(struct cgroup_subsys_state *css, in cpu_cgroup_exit()
8038 struct cgroup_subsys_state *old_css, in cpu_cgroup_exit()
[all …]
Dsched.h230 struct cgroup_subsys_state css;
/linux-4.1.27/mm/
Dhugetlb_cgroup.c23 struct cgroup_subsys_state css;
37 struct hugetlb_cgroup *hugetlb_cgroup_from_css(struct cgroup_subsys_state *s) in hugetlb_cgroup_from_css()
70 static struct cgroup_subsys_state *
71 hugetlb_cgroup_css_alloc(struct cgroup_subsys_state *parent_css) in hugetlb_cgroup_css_alloc()
93 static void hugetlb_cgroup_css_free(struct cgroup_subsys_state *css) in hugetlb_cgroup_css_free()
145 static void hugetlb_cgroup_css_offline(struct cgroup_subsys_state *css) in hugetlb_cgroup_css_offline()
247 static u64 hugetlb_cgroup_read_u64(struct cgroup_subsys_state *css, in hugetlb_cgroup_read_u64()
Dmemcontrol.c264 struct cgroup_subsys_state css;
424 struct mem_cgroup *mem_cgroup_from_css(struct cgroup_subsys_state *s) in mem_cgroup_from_css()
437 struct cgroup_subsys_state *vmpressure_to_css(struct vmpressure *vmpr) in vmpressure_to_css()
466 struct cgroup_subsys_state *css; in mem_cgroup_from_id()
594 struct cgroup_subsys_state *mem_cgroup_css(struct mem_cgroup *memcg) in mem_cgroup_css()
1014 struct cgroup_subsys_state *css = NULL; in mem_cgroup_iter()
3073 static u64 mem_cgroup_hierarchy_read(struct cgroup_subsys_state *css, in mem_cgroup_hierarchy_read()
3079 static int mem_cgroup_hierarchy_write(struct cgroup_subsys_state *css, in mem_cgroup_hierarchy_write()
3155 static u64 mem_cgroup_read_u64(struct cgroup_subsys_state *css, in mem_cgroup_read_u64()
3369 static u64 mem_cgroup_move_charge_read(struct cgroup_subsys_state *css, in mem_cgroup_move_charge_read()
[all …]
Dvmpressure.c80 struct cgroup_subsys_state *css = vmpressure_to_css(vmpr); in vmpressure_parent()
Dslab_common.c481 struct cgroup_subsys_state *css = mem_cgroup_css(memcg); in memcg_create_kmem_cache()
Dmemory-failure.c137 struct cgroup_subsys_state *css; in hwpoison_filter_task()
/linux-4.1.27/security/
Ddevice_cgroup.c49 struct cgroup_subsys_state css;
54 static inline struct dev_cgroup *css_to_devcgroup(struct cgroup_subsys_state *s) in css_to_devcgroup()
182 static int devcgroup_online(struct cgroup_subsys_state *css) in devcgroup_online()
203 static void devcgroup_offline(struct cgroup_subsys_state *css) in devcgroup_offline()
215 static struct cgroup_subsys_state *
216 devcgroup_css_alloc(struct cgroup_subsys_state *parent_css) in devcgroup_css_alloc()
229 static void devcgroup_css_free(struct cgroup_subsys_state *css) in devcgroup_css_free()
544 struct cgroup_subsys_state *pos; in propagate_exception()
/linux-4.1.27/block/
Dblk-cgroup.c444 static int blkcg_reset_stats(struct cgroup_subsys_state *css, in blkcg_reset_stats()
634 struct cgroup_subsys_state *pos_css; in blkg_stat_recursive_sum()
667 struct cgroup_subsys_state *pos_css; in blkg_rwstat_recursive_sum()
794 static void blkcg_css_offline(struct cgroup_subsys_state *css) in blkcg_css_offline()
818 static void blkcg_css_free(struct cgroup_subsys_state *css) in blkcg_css_free()
826 static struct cgroup_subsys_state *
827 blkcg_css_alloc(struct cgroup_subsys_state *parent_css) in blkcg_css_alloc()
908 static int blkcg_can_attach(struct cgroup_subsys_state *css, in blkcg_can_attach()
Dblk-cgroup.h46 struct cgroup_subsys_state css;
180 static inline struct blkcg *css_to_blkcg(struct cgroup_subsys_state *css) in css_to_blkcg()
Dblk-throttle.c1360 struct cgroup_subsys_state *pos_css; in tg_set_conf()
1629 struct cgroup_subsys_state *pos_css; in blk_throtl_drain()
Dcfq-iosched.c1728 static int __cfq_set_weight(struct cgroup_subsys_state *css, struct cftype *cft, in __cfq_set_weight()
1763 static int cfq_set_weight(struct cgroup_subsys_state *css, struct cftype *cft, in cfq_set_weight()
1769 static int cfq_set_leaf_weight(struct cgroup_subsys_state *css, in cfq_set_leaf_weight()
Dbio.c2002 struct cgroup_subsys_state *css; in bio_associate_current()
/linux-4.1.27/include/net/
Dnetprio_cgroup.h32 struct cgroup_subsys_state *css; in task_netprioidx()
Dcls_cgroup.h23 struct cgroup_subsys_state css;
/linux-4.1.27/net/ipv4/
Dtcp_memcontrol.c141 static u64 tcp_cgroup_read(struct cgroup_subsys_state *css, struct cftype *cft) in tcp_cgroup_read()
/linux-4.1.27/Documentation/cgroups/
Dcgroups.txt175 cgroup_subsys_state objects, one for each cgroup subsystem
179 cgroup_subsys_state objects. This is because accessing the
537 struct cgroup_subsys_state *css_alloc(struct cgroup *cgrp)
544 a structure of type cgroup_subsys_state (typically embedded in a
602 void css_reset(struct cgroup_subsys_state *css)
/linux-4.1.27/kernel/events/
Dcore.c591 struct cgroup_subsys_state *css; in perf_cgroup_connect()
9059 static struct cgroup_subsys_state *
9060 perf_cgroup_css_alloc(struct cgroup_subsys_state *parent_css) in perf_cgroup_css_alloc()
9077 static void perf_cgroup_css_free(struct cgroup_subsys_state *css) in perf_cgroup_css_free()
9092 static void perf_cgroup_attach(struct cgroup_subsys_state *css, in perf_cgroup_attach()
9101 static void perf_cgroup_exit(struct cgroup_subsys_state *css, in perf_cgroup_exit()
9102 struct cgroup_subsys_state *old_css, in perf_cgroup_exit()