Home
last modified time | relevance | path

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

123

/Linux-v5.15/include/linux/
Dcgroup.h98 bool css_has_online_children(struct cgroup_subsys_state *css);
99 struct cgroup_subsys_state *css_from_id(int id, struct cgroup_subsys *ss);
100 struct cgroup_subsys_state *cgroup_e_css(struct cgroup *cgroup,
102 struct cgroup_subsys_state *cgroup_get_e_css(struct cgroup *cgroup,
104 struct cgroup_subsys_state *css_tryget_online_from_dir(struct dentry *dentry,
143 struct cgroup_subsys_state *css_next_child(struct cgroup_subsys_state *pos,
144 struct cgroup_subsys_state *parent);
145 struct cgroup_subsys_state *css_next_descendant_pre(struct cgroup_subsys_state *pos,
146 struct cgroup_subsys_state *css);
147 struct cgroup_subsys_state *css_rightmost_descendant(struct cgroup_subsys_state *pos);
[all …]
Dcgroup-defs.h142 struct cgroup_subsys_state { struct
189 struct cgroup_subsys_state *parent; argument
205 struct cgroup_subsys_state *subsys[CGROUP_SUBSYS_COUNT];
362 struct cgroup_subsys_state self;
426 struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
577 u64 (*read_u64)(struct cgroup_subsys_state *css, struct cftype *cft);
581 s64 (*read_s64)(struct cgroup_subsys_state *css, struct cftype *cft);
596 int (*write_u64)(struct cgroup_subsys_state *css, struct cftype *cft,
601 int (*write_s64)(struct cgroup_subsys_state *css, struct cftype *cft,
626 struct cgroup_subsys_state *(*css_alloc)(struct cgroup_subsys_state *parent_css);
[all …]
Dkthread.h212 struct cgroup_subsys_state;
215 void kthread_associate_blkcg(struct cgroup_subsys_state *css);
216 struct cgroup_subsys_state *kthread_blkcg(void);
218 static inline void kthread_associate_blkcg(struct cgroup_subsys_state *css) { } in kthread_associate_blkcg()
219 static inline struct cgroup_subsys_state *kthread_blkcg(void) in kthread_blkcg()
Dblk-cgroup.h49 struct cgroup_subsys_state css;
180 extern struct cgroup_subsys_state * const blkcg_root_css;
222 static inline struct cgroup_subsys_state *blkcg_css(void) in blkcg_css()
224 struct cgroup_subsys_state *css; in blkcg_css()
232 static inline struct blkcg *css_to_blkcg(struct cgroup_subsys_state *css) in css_to_blkcg()
275 struct cgroup_subsys_state *css; in blk_cgroup_congested()
628 #define blkcg_root_css ((struct cgroup_subsys_state *)ERR_PTR(-EINVAL))
679 struct cgroup_subsys_state *css; in blkcg_set_fc_appid()
Dmisc_cgroup.h48 struct cgroup_subsys_state css;
68 static inline struct misc_cg *css_misc(struct cgroup_subsys_state *css) in css_misc()
Dbacking-dev.h173 struct cgroup_subsys_state *memcg_css);
175 struct cgroup_subsys_state *memcg_css,
212 struct cgroup_subsys_state *memcg_css; in wb_find_current()
251 struct cgroup_subsys_state *memcg_css; in wb_get_create_current()
Dbacking-dev-defs.h155 struct cgroup_subsys_state *memcg_css; /* the associated memcg */
156 struct cgroup_subsys_state *blkcg_css; /* and blkcg */
Dcgroup_rdma.h20 struct cgroup_subsys_state css;
/Linux-v5.15/kernel/cgroup/
Dpids.c42 struct cgroup_subsys_state css;
58 static struct pids_cgroup *css_pids(struct cgroup_subsys_state *css) in css_pids()
68 static struct cgroup_subsys_state *
69 pids_css_alloc(struct cgroup_subsys_state *parent) in pids_css_alloc()
83 static void pids_css_free(struct cgroup_subsys_state *css) in pids_css_free()
174 struct cgroup_subsys_state *dst_css; in pids_can_attach()
178 struct cgroup_subsys_state *old_css; in pids_can_attach()
199 struct cgroup_subsys_state *dst_css; in pids_cancel_attach()
203 struct cgroup_subsys_state *old_css; in pids_cancel_attach()
220 struct cgroup_subsys_state *css; in pids_can_fork()
[all …]
Dlegacy_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 …]
Ddebug.c14 static struct cgroup_subsys_state *
15 debug_css_alloc(struct cgroup_subsys_state *parent_css) in debug_css_alloc()
17 struct cgroup_subsys_state *css = kzalloc(sizeof(*css), GFP_KERNEL); in debug_css_alloc()
25 static void debug_css_free(struct cgroup_subsys_state *css) in debug_css_free()
34 static u64 debug_taskcount_read(struct cgroup_subsys_state *css, in debug_taskcount_read()
45 struct cgroup_subsys_state *css; in current_css_set_read()
76 static u64 current_css_set_refcount_read(struct cgroup_subsys_state *css, in current_css_set_refcount_read()
116 struct cgroup_subsys_state *css = seq_css(seq); in cgroup_css_links_read()
208 struct cgroup_subsys_state *css; in cgroup_subsys_states_read()
271 static u64 releasable_read(struct cgroup_subsys_state *css, struct cftype *cft) in releasable_read()
Dcgroup.c241 static struct cgroup_subsys_state *css_create(struct cgroup *cgrp,
244 static void kill_css(struct cgroup_subsys_state *css);
245 static int cgroup_addrm_files(struct cgroup_subsys_state *css,
480 static struct cgroup_subsys_state *cgroup_css(struct cgroup *cgrp, in cgroup_css()
498 static struct cgroup_subsys_state *cgroup_tryget_css(struct cgroup *cgrp, in cgroup_tryget_css()
501 struct cgroup_subsys_state *css; in cgroup_tryget_css()
522 static struct cgroup_subsys_state *cgroup_e_css_by_mask(struct cgroup *cgrp, in cgroup_e_css_by_mask()
556 struct cgroup_subsys_state *cgroup_e_css(struct cgroup *cgrp, in cgroup_e_css()
559 struct cgroup_subsys_state *css; in cgroup_e_css()
586 struct cgroup_subsys_state *cgroup_get_e_css(struct cgroup *cgrp, in cgroup_get_e_css()
[all …]
Dcpuset.c82 struct cgroup_subsys_state css;
195 static inline struct cpuset *css_cs(struct cgroup_subsys_state *css) in css_cs()
597 struct cgroup_subsys_state *css; in validate_change()
689 struct cgroup_subsys_state *pos_css; in update_domain_attr_tree()
776 struct cgroup_subsys_state *pos_css; in generate_sched_domains()
958 struct cgroup_subsys_state *pos_css; in rebuild_root_domains()
1014 struct cgroup_subsys_state *pos_css; in rebuild_sched_domains_locked()
1357 struct cgroup_subsys_state *pos_css; in update_cpumasks_hier()
1513 struct cgroup_subsys_state *pos_css; in update_sibling_cpumasks()
1778 struct cgroup_subsys_state *pos_css; in update_nodemasks_hier()
[all …]
Drdma.c67 static struct rdma_cgroup *css_rdmacg(struct cgroup_subsys_state *css) in css_rdmacg()
562 static struct cgroup_subsys_state *
563 rdmacg_css_alloc(struct cgroup_subsys_state *parent) in rdmacg_css_alloc()
575 static void rdmacg_css_free(struct cgroup_subsys_state *css) in rdmacg_css_free()
591 static void rdmacg_css_offline(struct cgroup_subsys_state *css) in rdmacg_css_offline()
Dmisc.c368 static struct cgroup_subsys_state *
369 misc_cg_alloc(struct cgroup_subsys_state *parent_css) in misc_cg_alloc()
396 static void misc_cg_free(struct cgroup_subsys_state *css) in misc_cg_free()
/Linux-v5.15/net/core/
Dnetclassid_cgroup.c16 static inline struct cgroup_cls_state *css_cls_state(struct cgroup_subsys_state *css) in css_cls_state()
28 static struct cgroup_subsys_state *
29 cgrp_css_alloc(struct cgroup_subsys_state *parent_css) in cgrp_css_alloc()
40 static int cgrp_css_online(struct cgroup_subsys_state *css) in cgrp_css_online()
51 static void cgrp_css_free(struct cgroup_subsys_state *css) in cgrp_css_free()
101 struct cgroup_subsys_state *css; in cgrp_attach()
109 static u64 read_classid(struct cgroup_subsys_state *css, struct cftype *cft) in read_classid()
114 static int write_classid(struct cgroup_subsys_state *css, struct cftype *cft, in write_classid()
Dnetprio_cgroup.c93 static u32 netprio_prio(struct cgroup_subsys_state *css, struct net_device *dev) in netprio_prio()
112 static int netprio_set_prio(struct cgroup_subsys_state *css, in netprio_set_prio()
133 static struct cgroup_subsys_state *
134 cgrp_css_alloc(struct cgroup_subsys_state *parent_css) in cgrp_css_alloc()
136 struct cgroup_subsys_state *css; in cgrp_css_alloc()
145 static int cgrp_css_online(struct cgroup_subsys_state *css) in cgrp_css_online()
147 struct cgroup_subsys_state *parent_css = css->parent; in cgrp_css_online()
173 static void cgrp_css_free(struct cgroup_subsys_state *css) in cgrp_css_free()
178 static u64 read_prioidx(struct cgroup_subsys_state *css, struct cftype *cft) in read_prioidx()
232 struct cgroup_subsys_state *css; in net_prio_attach()
/Linux-v5.15/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()
156 static u64 __cpuusage_read(struct cgroup_subsys_state *css, in __cpuusage_read()
169 static u64 cpuusage_user_read(struct cgroup_subsys_state *css, in cpuusage_user_read()
175 static u64 cpuusage_sys_read(struct cgroup_subsys_state *css, in cpuusage_sys_read()
181 static u64 cpuusage_read(struct cgroup_subsys_state *css, struct cftype *cft) in cpuusage_read()
186 static int cpuusage_write(struct cgroup_subsys_state *css, struct cftype *cft, in cpuusage_write()
/Linux-v5.15/security/
Ddevice_cgroup.c43 struct cgroup_subsys_state css;
48 static inline struct dev_cgroup *css_to_devcgroup(struct cgroup_subsys_state *s) in css_to_devcgroup()
176 static int devcgroup_online(struct cgroup_subsys_state *css) in devcgroup_online()
197 static void devcgroup_offline(struct cgroup_subsys_state *css) in devcgroup_offline()
209 static struct cgroup_subsys_state *
210 devcgroup_css_alloc(struct cgroup_subsys_state *parent_css) in devcgroup_css_alloc()
223 static void devcgroup_css_free(struct cgroup_subsys_state *css) in devcgroup_css_free()
539 struct cgroup_subsys_state *pos; in propagate_exception()
/Linux-v5.15/drivers/block/
Dloop.h81 struct cgroup_subsys_state *blkcg_css;
82 struct cgroup_subsys_state *memcg_css;
/Linux-v5.15/block/
Dblk-cgroup.c49 struct cgroup_subsys_state * const blkcg_root_css = &blkcg_root.css;
454 static int blkcg_reset_stats(struct cgroup_subsys_state *css, in blkcg_reset_stats()
777 static void blkcg_rstat_flush(struct cgroup_subsys_state *css, int cpu) in blkcg_rstat_flush()
997 static void blkcg_css_offline(struct cgroup_subsys_state *css) in blkcg_css_offline()
1049 static void blkcg_css_free(struct cgroup_subsys_state *css) in blkcg_css_free()
1067 static struct cgroup_subsys_state *
1068 blkcg_css_alloc(struct cgroup_subsys_state *parent_css) in blkcg_css_alloc()
1071 struct cgroup_subsys_state *ret; in blkcg_css_alloc()
1135 static int blkcg_css_online(struct cgroup_subsys_state *css) in blkcg_css_online()
1224 static void blkcg_bind(struct cgroup_subsys_state *root_css) in blkcg_bind()
[all …]
/Linux-v5.15/mm/
Dhugetlb_cgroup.c57 struct hugetlb_cgroup *hugetlb_cgroup_from_css(struct cgroup_subsys_state *s) in hugetlb_cgroup_from_css()
129 static struct cgroup_subsys_state *
130 hugetlb_cgroup_css_alloc(struct cgroup_subsys_state *parent_css) in hugetlb_cgroup_css_alloc()
146 static void hugetlb_cgroup_css_free(struct cgroup_subsys_state *css) in hugetlb_cgroup_css_free()
197 static void hugetlb_cgroup_css_offline(struct cgroup_subsys_state *css) in hugetlb_cgroup_css_offline()
424 static u64 hugetlb_cgroup_read_u64(struct cgroup_subsys_state *css, in hugetlb_cgroup_read_u64()
Dmemcontrol.c418 struct cgroup_subsys_state *mem_cgroup_css_from_page(struct page *page) in mem_cgroup_css_from_page()
967 struct cgroup_subsys_state *css = NULL; in mem_cgroup_iter()
3497 static u64 mem_cgroup_hierarchy_read(struct cgroup_subsys_state *css, in mem_cgroup_hierarchy_read()
3503 static int mem_cgroup_hierarchy_write(struct cgroup_subsys_state *css, in mem_cgroup_hierarchy_write()
3544 static u64 mem_cgroup_read_u64(struct cgroup_subsys_state *css, in mem_cgroup_read_u64()
3621 struct cgroup_subsys_state *css; in memcg_offline_kmem()
3810 static u64 mem_cgroup_move_charge_read(struct cgroup_subsys_state *css, in mem_cgroup_move_charge_read()
3817 static int mem_cgroup_move_charge_write(struct cgroup_subsys_state *css, in mem_cgroup_move_charge_write()
3835 static int mem_cgroup_move_charge_write(struct cgroup_subsys_state *css, in mem_cgroup_move_charge_write()
4048 static u64 mem_cgroup_swappiness_read(struct cgroup_subsys_state *css, in mem_cgroup_swappiness_read()
[all …]
/Linux-v5.15/include/net/
Dnetprio_cgroup.h24 struct cgroup_subsys_state *css; in task_netprioidx()
Dcls_cgroup.h19 struct cgroup_subsys_state css;

123