Home
last modified time | relevance | path

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

/linux-4.4.14/include/linux/
Dcgroup.h77 bool css_has_online_children(struct cgroup_subsys_state *css);
78 struct cgroup_subsys_state *css_from_id(int id, struct cgroup_subsys *ss);
79 struct cgroup_subsys_state *cgroup_get_e_css(struct cgroup *cgroup,
81 struct cgroup_subsys_state *css_tryget_online_from_dir(struct dentry *dentry,
115 struct cgroup_subsys_state *css_next_child(struct cgroup_subsys_state *pos,
116 struct cgroup_subsys_state *parent);
117 struct cgroup_subsys_state *css_next_descendant_pre(struct cgroup_subsys_state *pos,
118 struct cgroup_subsys_state *css);
119 struct cgroup_subsys_state *css_rightmost_descendant(struct cgroup_subsys_state *pos);
120 struct cgroup_subsys_state *css_next_descendant_post(struct cgroup_subsys_state *pos,
[all …]
Dcgroup-defs.h103 struct cgroup_subsys_state { struct
114 struct cgroup_subsys_state *parent; argument
188 struct cgroup_subsys_state *subsys[CGROUP_SUBSYS_COUNT];
228 struct cgroup_subsys_state self;
266 struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
380 u64 (*read_u64)(struct cgroup_subsys_state *css, struct cftype *cft);
384 s64 (*read_s64)(struct cgroup_subsys_state *css, struct cftype *cft);
399 int (*write_u64)(struct cgroup_subsys_state *css, struct cftype *cft,
404 int (*write_s64)(struct cgroup_subsys_state *css, struct cftype *cft,
426 struct cgroup_subsys_state *(*css_alloc)(struct cgroup_subsys_state *parent_css);
[all …]
Dblk-cgroup.h44 struct cgroup_subsys_state css;
170 extern struct cgroup_subsys_state * const blkcg_root_css;
221 static inline struct blkcg *css_to_blkcg(struct cgroup_subsys_state *css) in css_to_blkcg()
238 static inline struct cgroup_subsys_state *
742 #define blkcg_root_css ((struct cgroup_subsys_state *)ERR_PTR(-EINVAL))
744 static inline struct cgroup_subsys_state *
Dbacking-dev-defs.h124 struct cgroup_subsys_state *memcg_css; /* the associated memcg */
125 struct cgroup_subsys_state *blkcg_css; /* and blkcg */
Dblk_types.h16 struct cgroup_subsys_state;
80 struct cgroup_subsys_state *bi_css;
Dbacking-dev.h248 struct cgroup_subsys_state *memcg_css,
286 struct cgroup_subsys_state *memcg_css; in wb_find_current()
325 struct cgroup_subsys_state *memcg_css; in wb_get_create_current()
Dmemcontrol.h184 struct cgroup_subsys_state css;
278 extern struct cgroup_subsys_state *mem_cgroup_root_css;
314 struct mem_cgroup *mem_cgroup_from_css(struct cgroup_subsys_state *css){ in mem_cgroup_from_css()
347 struct cgroup_subsys_state *mem_cgroup_css_from_page(struct page *page);
Dvmpressure.h36 extern struct cgroup_subsys_state *vmpressure_to_css(struct vmpressure *vmpr);
Dbio.h527 int bio_associate_blkcg(struct bio *bio, struct cgroup_subsys_state *blkcg_css);
532 struct cgroup_subsys_state *blkcg_css) { return 0; } in bio_associate_blkcg()
Dperf_event.h690 struct cgroup_subsys_state css;
/linux-4.4.14/kernel/
Dcgroup_pids.c44 struct cgroup_subsys_state css;
54 static struct pids_cgroup *css_pids(struct cgroup_subsys_state *css) in css_pids()
64 static struct cgroup_subsys_state *
65 pids_css_alloc(struct cgroup_subsys_state *parent) in pids_css_alloc()
78 static void pids_css_free(struct cgroup_subsys_state *css) in pids_css_free()
168 struct cgroup_subsys_state *dst_css; in pids_can_attach()
172 struct cgroup_subsys_state *old_css; in pids_can_attach()
193 struct cgroup_subsys_state *dst_css; in pids_cancel_attach()
197 struct cgroup_subsys_state *old_css; in pids_cancel_attach()
214 struct cgroup_subsys_state *css; in pids_can_fork()
[all …]
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()
161 struct cgroup_subsys_state *new_css; in freezer_attach()
244 static void update_if_frozen(struct cgroup_subsys_state *css) in update_if_frozen()
247 struct cgroup_subsys_state *pos; in update_if_frozen()
[all …]
Dcgroup.c224 static void kill_css(struct cgroup_subsys_state *css);
225 static int cgroup_addrm_files(struct cgroup_subsys_state *css,
333 struct cgroup_subsys_state *parent_css = cgrp->self.parent; in cgroup_parent()
351 static struct cgroup_subsys_state *cgroup_css(struct cgroup *cgrp, in cgroup_css()
371 static struct cgroup_subsys_state *cgroup_e_css(struct cgroup *cgrp, in cgroup_e_css()
404 struct cgroup_subsys_state *cgroup_get_e_css(struct cgroup *cgrp, in cgroup_get_e_css()
407 struct cgroup_subsys_state *css; in cgroup_get_e_css()
448 struct cgroup_subsys_state *of_css(struct kernfs_open_file *of) in of_css()
739 static unsigned long css_set_hash(struct cgroup_subsys_state *css[]) in css_set_hash()
818 struct cgroup_subsys_state *template[]) in compare_css_sets()
[all …]
Dcpuset.c75 struct cgroup_subsys_state css;
134 static inline struct cpuset *css_cs(struct cgroup_subsys_state *css) in css_cs()
456 struct cgroup_subsys_state *css; in validate_change()
549 struct cgroup_subsys_state *pos_css; in update_domain_attr_tree()
631 struct cgroup_subsys_state *pos_css; in generate_sched_domains()
871 struct cgroup_subsys_state *pos_css; in update_cpumasks_hier()
1150 struct cgroup_subsys_state *pos_css; in update_nodemasks_hier()
1456 struct cgroup_subsys_state *css; in cpuset_can_attach()
1495 struct cgroup_subsys_state *css; in cpuset_cancel_attach()
1519 struct cgroup_subsys_state *css; in cpuset_attach()
[all …]
/linux-4.4.14/net/core/
Dnetclassid_cgroup.c19 static inline struct cgroup_cls_state *css_cls_state(struct cgroup_subsys_state *css) in css_cls_state()
31 static struct cgroup_subsys_state *
32 cgrp_css_alloc(struct cgroup_subsys_state *parent_css) in cgrp_css_alloc()
43 static int cgrp_css_online(struct cgroup_subsys_state *css) in cgrp_css_online()
54 static void cgrp_css_free(struct cgroup_subsys_state *css) in cgrp_css_free()
70 static void update_classid(struct cgroup_subsys_state *css, void *v) in update_classid()
86 struct cgroup_subsys_state *css; in cgrp_attach()
93 static u64 read_classid(struct cgroup_subsys_state *css, struct cftype *cft) in read_classid()
98 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()
224 struct cgroup_subsys_state *css; in net_prio_attach()
/linux-4.4.14/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.c8193 static inline struct task_group *css_tg(struct cgroup_subsys_state *css) in css_tg()
8198 static struct cgroup_subsys_state *
8199 cpu_cgroup_css_alloc(struct cgroup_subsys_state *parent_css) in cpu_cgroup_css_alloc()
8218 static void cpu_cgroup_css_released(struct cgroup_subsys_state *css) in cpu_cgroup_css_released()
8225 static void cpu_cgroup_css_free(struct cgroup_subsys_state *css) in cpu_cgroup_css_free()
8243 struct cgroup_subsys_state *css; in cpu_cgroup_can_attach()
8261 struct cgroup_subsys_state *css; in cpu_cgroup_attach()
8268 static int cpu_shares_write_u64(struct cgroup_subsys_state *css, in cpu_shares_write_u64()
8274 static u64 cpu_shares_read_u64(struct cgroup_subsys_state *css, in cpu_shares_read_u64()
8409 static s64 cpu_cfs_quota_read_s64(struct cgroup_subsys_state *css, in cpu_cfs_quota_read_s64()
[all …]
Dsched.h241 struct cgroup_subsys_state css;
/linux-4.4.14/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()
248 static u64 hugetlb_cgroup_read_u64(struct cgroup_subsys_state *css, in hugetlb_cgroup_read_u64()
Dmemcontrol.c81 struct cgroup_subsys_state *mem_cgroup_root_css __read_mostly;
257 struct cgroup_subsys_state *vmpressure_to_css(struct vmpressure *vmpr) in vmpressure_to_css()
286 struct cgroup_subsys_state *css; in mem_cgroup_from_id()
431 struct cgroup_subsys_state *mem_cgroup_css_from_page(struct page *page) in mem_cgroup_css_from_page()
877 struct cgroup_subsys_state *css = NULL; in mem_cgroup_iter()
2777 static u64 mem_cgroup_hierarchy_read(struct cgroup_subsys_state *css, in mem_cgroup_hierarchy_read()
2783 static int mem_cgroup_hierarchy_write(struct cgroup_subsys_state *css, in mem_cgroup_hierarchy_write()
2856 static u64 mem_cgroup_read_u64(struct cgroup_subsys_state *css, in mem_cgroup_read_u64()
3070 static u64 mem_cgroup_move_charge_read(struct cgroup_subsys_state *css, in mem_cgroup_move_charge_read()
3077 static int mem_cgroup_move_charge_write(struct cgroup_subsys_state *css, in mem_cgroup_move_charge_write()
[all …]
Dbacking-dev.c519 struct cgroup_subsys_state *memcg_css, gfp_t gfp) in cgwb_create()
522 struct cgroup_subsys_state *blkcg_css; in cgwb_create()
635 struct cgroup_subsys_state *memcg_css, in wb_get_create()
649 struct cgroup_subsys_state *blkcg_css; in wb_get_create()
Dvmpressure.c80 struct cgroup_subsys_state *css = vmpressure_to_css(vmpr); in vmpressure_parent()
Dslab_common.c493 struct cgroup_subsys_state *css = &memcg->css; in memcg_create_kmem_cache()
/linux-4.4.14/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.4.14/block/
Dblk-cgroup.c46 struct cgroup_subsys_state * const blkcg_root_css = &blkcg_root.css;
436 static int blkcg_reset_stats(struct cgroup_subsys_state *css, in blkcg_reset_stats()
702 struct cgroup_subsys_state *pos_css; in blkg_stat_recursive_sum()
744 struct cgroup_subsys_state *pos_css; in blkg_rwstat_recursive_sum()
927 static void blkcg_css_offline(struct cgroup_subsys_state *css) in blkcg_css_offline()
953 static void blkcg_css_free(struct cgroup_subsys_state *css) in blkcg_css_free()
971 static struct cgroup_subsys_state *
972 blkcg_css_alloc(struct cgroup_subsys_state *parent_css) in blkcg_css_alloc()
975 struct cgroup_subsys_state *ret; in blkcg_css_alloc()
1133 struct cgroup_subsys_state *dst_css; in blkcg_can_attach()
[all …]
Dblk-throttle.c1150 struct cgroup_subsys_state *pos_css; in tg_conf_updated()
1524 struct cgroup_subsys_state *pos_css; in blk_throtl_drain()
Dcfq-iosched.c1525 static int __cfq_set_weight(struct cgroup_subsys_state *css, u64 val,
1817 static int __cfq_set_weight(struct cgroup_subsys_state *css, u64 val, in __cfq_set_weight()
1866 static int cfq_set_weight(struct cgroup_subsys_state *css, struct cftype *cft, in cfq_set_weight()
1872 static int cfq_set_leaf_weight(struct cgroup_subsys_state *css, in cfq_set_leaf_weight()
Dbio.c1960 int bio_associate_blkcg(struct bio *bio, struct cgroup_subsys_state *blkcg_css) in bio_associate_blkcg()
/linux-4.4.14/include/net/
Dnetprio_cgroup.h32 struct cgroup_subsys_state *css; in task_netprioidx()
Dcls_cgroup.h23 struct cgroup_subsys_state css;
/linux-4.4.14/net/ipv4/
Dtcp_memcontrol.c141 static u64 tcp_cgroup_read(struct cgroup_subsys_state *css, struct cftype *cft) in tcp_cgroup_read()
/linux-4.4.14/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.4.14/fs/
Dfs-writeback.c235 struct cgroup_subsys_state *memcg_css; in __inode_attach_wb()
457 struct cgroup_subsys_state *memcg_css; in inode_switch_wbs()
/linux-4.4.14/kernel/events/
Dcore.c603 struct cgroup_subsys_state *css; in perf_cgroup_connect()
9463 static struct cgroup_subsys_state *
9464 perf_cgroup_css_alloc(struct cgroup_subsys_state *parent_css) in perf_cgroup_css_alloc()
9481 static void perf_cgroup_css_free(struct cgroup_subsys_state *css) in perf_cgroup_css_free()
9501 struct cgroup_subsys_state *css; in perf_cgroup_attach()