Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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.h138 struct cgroup_subsys_state { struct
185 struct cgroup_subsys_state *parent; argument
201 struct cgroup_subsys_state *subsys[CGROUP_SUBSYS_COUNT];
358 struct cgroup_subsys_state self;
422 struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
576 u64 (*read_u64)(struct cgroup_subsys_state *css, struct cftype *cft);
580 s64 (*read_s64)(struct cgroup_subsys_state *css, struct cftype *cft);
595 int (*write_u64)(struct cgroup_subsys_state *css, struct cftype *cft,
600 int (*write_s64)(struct cgroup_subsys_state *css, struct cftype *cft,
625 struct cgroup_subsys_state *(*css_alloc)(struct cgroup_subsys_state *parent_css);
[all …]
Dkthread.h210 struct cgroup_subsys_state;
213 void kthread_associate_blkcg(struct cgroup_subsys_state *css);
214 struct cgroup_subsys_state *kthread_blkcg(void);
216 static inline void kthread_associate_blkcg(struct cgroup_subsys_state *css) { } in kthread_associate_blkcg()
217 static inline struct cgroup_subsys_state *kthread_blkcg(void) in kthread_blkcg()
Dblk-cgroup.h47 struct cgroup_subsys_state css;
175 extern struct cgroup_subsys_state * const blkcg_root_css;
217 static inline struct cgroup_subsys_state *blkcg_css(void) in blkcg_css()
219 struct cgroup_subsys_state *css; in blkcg_css()
227 static inline struct blkcg *css_to_blkcg(struct cgroup_subsys_state *css) in css_to_blkcg()
270 struct cgroup_subsys_state *css; in blk_cgroup_congested()
623 #define blkcg_root_css ((struct cgroup_subsys_state *)ERR_PTR(-EINVAL))
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.h153 struct cgroup_subsys_state *memcg_css; /* the associated memcg */
154 struct cgroup_subsys_state *blkcg_css; /* and blkcg */
Dcgroup_rdma.h20 struct cgroup_subsys_state css;
Dvmpressure.h40 extern struct cgroup_subsys_state *vmpressure_to_css(struct vmpressure *vmpr);
Dio_uring.h12 struct cgroup_subsys_state *blkcg_css;
/kernel/linux/linux-5.10/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.c217 static struct cgroup_subsys_state *css_create(struct cgroup *cgrp,
220 static void kill_css(struct cgroup_subsys_state *css);
221 static int cgroup_addrm_files(struct cgroup_subsys_state *css,
459 static struct cgroup_subsys_state *cgroup_css(struct cgroup *cgrp, in cgroup_css()
477 static struct cgroup_subsys_state *cgroup_tryget_css(struct cgroup *cgrp, in cgroup_tryget_css()
480 struct cgroup_subsys_state *css; in cgroup_tryget_css()
501 static struct cgroup_subsys_state *cgroup_e_css_by_mask(struct cgroup *cgrp, in cgroup_e_css_by_mask()
535 struct cgroup_subsys_state *cgroup_e_css(struct cgroup *cgrp, in cgroup_e_css()
538 struct cgroup_subsys_state *css; in cgroup_e_css()
562 struct cgroup_subsys_state *cgroup_get_e_css(struct cgroup *cgrp, in cgroup_get_e_css()
[all …]
Dcpuset.c82 struct cgroup_subsys_state css;
193 static inline struct cpuset *css_cs(struct cgroup_subsys_state *css) in css_cs()
578 struct cgroup_subsys_state *css; in validate_change()
671 struct cgroup_subsys_state *pos_css; in update_domain_attr_tree()
758 struct cgroup_subsys_state *pos_css; in generate_sched_domains()
940 struct cgroup_subsys_state *pos_css; in rebuild_root_domains()
996 struct cgroup_subsys_state *pos_css; in rebuild_sched_domains_locked()
1338 struct cgroup_subsys_state *pos_css; in update_cpumasks_hier()
1493 struct cgroup_subsys_state *pos_css; in update_sibling_cpumasks()
1755 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()
/kernel/linux/linux-5.10/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()
102 struct cgroup_subsys_state *css; in cgrp_attach()
110 static u64 read_classid(struct cgroup_subsys_state *css, struct cftype *cft) in read_classid()
115 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()
234 struct cgroup_subsys_state *css; in net_prio_attach()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/mm/
Dzswapd_control.c209 static int area_anon_refault_threshold_write(struct cgroup_subsys_state *css, in area_anon_refault_threshold_write()
217 static int empty_round_skip_interval_write(struct cgroup_subsys_state *css, in empty_round_skip_interval_write()
225 static int max_skip_interval_write(struct cgroup_subsys_state *css, in max_skip_interval_write()
233 static int empty_round_check_threshold_write(struct cgroup_subsys_state *css, in empty_round_check_threshold_write()
241 static int anon_refault_snapshot_min_interval_write(struct cgroup_subsys_state *css, in anon_refault_snapshot_min_interval_write()
249 static int zram_critical_thres_write(struct cgroup_subsys_state *css, in zram_critical_thres_write()
308 static u64 zswapd_pid_read(struct cgroup_subsys_state *css, struct cftype *cft) in zswapd_pid_read()
556 static u64 area_anon_refault_threshold_read(struct cgroup_subsys_state *css, in area_anon_refault_threshold_read()
562 static u64 empty_round_skip_interval_read(struct cgroup_subsys_state *css, in empty_round_skip_interval_read()
568 static u64 max_skip_interval_read(struct cgroup_subsys_state *css, in max_skip_interval_read()
[all …]
Dmemcg_control.c140 static u64 mem_cgroup_app_score_read(struct cgroup_subsys_state *css, in mem_cgroup_app_score_read()
148 static int mem_cgroup_app_score_write(struct cgroup_subsys_state *css, in mem_cgroup_app_score_write()
325 static int memcg_ub_ufs2zram_ratio_write(struct cgroup_subsys_state *css, in memcg_ub_ufs2zram_ratio_write()
339 static u64 memcg_ub_ufs2zram_ratio_read(struct cgroup_subsys_state *css, struct cftype *cft) in memcg_ub_ufs2zram_ratio_read()
346 static int memcg_force_swapin_write(struct cgroup_subsys_state *css, struct cftype *cft, u64 val) in memcg_force_swapin_write()
420 static u64 mem_cgroup_app_score_read(struct cgroup_subsys_state *css, in mem_cgroup_app_score_read()
426 static int mem_cgroup_app_score_write(struct cgroup_subsys_state *css, in mem_cgroup_app_score_write()
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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/block/
Dblk-cgroup.c50 struct cgroup_subsys_state * const blkcg_root_css = &blkcg_root.css;
440 static int blkcg_reset_stats(struct cgroup_subsys_state *css, in blkcg_reset_stats()
775 static void blkcg_rstat_flush(struct cgroup_subsys_state *css, int cpu) in blkcg_rstat_flush()
1007 static void blkcg_css_offline(struct cgroup_subsys_state *css) in blkcg_css_offline()
1059 static void blkcg_css_free(struct cgroup_subsys_state *css) in blkcg_css_free()
1077 static struct cgroup_subsys_state *
1078 blkcg_css_alloc(struct cgroup_subsys_state *parent_css) in blkcg_css_alloc()
1081 struct cgroup_subsys_state *ret; in blkcg_css_alloc()
1145 static int blkcg_css_online(struct cgroup_subsys_state *css) in blkcg_css_online()
1238 struct cgroup_subsys_state *dst_css; in blkcg_can_attach()
[all …]
/kernel/linux/linux-5.10/include/net/
Dnetprio_cgroup.h24 struct cgroup_subsys_state *css; in task_netprioidx()
Dcls_cgroup.h19 struct cgroup_subsys_state css;

123