Home
last modified time | relevance | path

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

12

/Linux-v5.4/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,
140 struct cgroup_subsys_state *css_next_child(struct cgroup_subsys_state *pos,
141 struct cgroup_subsys_state *parent);
142 struct cgroup_subsys_state *css_next_descendant_pre(struct cgroup_subsys_state *pos,
143 struct cgroup_subsys_state *css);
144 struct cgroup_subsys_state *css_rightmost_descendant(struct cgroup_subsys_state *pos);
[all …]
Dcgroup-defs.h133 struct cgroup_subsys_state { struct
180 struct cgroup_subsys_state *parent; argument
196 struct cgroup_subsys_state *subsys[CGROUP_SUBSYS_COUNT];
353 struct cgroup_subsys_state self;
427 struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
581 u64 (*read_u64)(struct cgroup_subsys_state *css, struct cftype *cft);
585 s64 (*read_s64)(struct cgroup_subsys_state *css, struct cftype *cft);
600 int (*write_u64)(struct cgroup_subsys_state *css, struct cftype *cft,
605 int (*write_s64)(struct cgroup_subsys_state *css, struct cftype *cft,
630 struct cgroup_subsys_state *(*css_alloc)(struct cgroup_subsys_state *parent_css);
[all …]
Dkthread.h200 struct cgroup_subsys_state;
203 void kthread_associate_blkcg(struct cgroup_subsys_state *css);
204 struct cgroup_subsys_state *kthread_blkcg(void);
206 static inline void kthread_associate_blkcg(struct cgroup_subsys_state *css) { } in kthread_associate_blkcg()
207 static inline struct cgroup_subsys_state *kthread_blkcg(void) in kthread_blkcg()
Dblk-cgroup.h48 struct cgroup_subsys_state css;
184 extern struct cgroup_subsys_state * const blkcg_root_css;
249 static inline struct cgroup_subsys_state *blkcg_css(void) in blkcg_css()
251 struct cgroup_subsys_state *css; in blkcg_css()
259 static inline struct blkcg *css_to_blkcg(struct cgroup_subsys_state *css) in css_to_blkcg()
302 struct cgroup_subsys_state *css; in blk_cgroup_congested()
835 #define blkcg_root_css ((struct cgroup_subsys_state *)ERR_PTR(-EINVAL))
Dbacking-dev.h234 struct cgroup_subsys_state *memcg_css);
236 struct cgroup_subsys_state *memcg_css,
274 struct cgroup_subsys_state *memcg_css; in wb_find_current()
313 struct cgroup_subsys_state *memcg_css; in wb_get_create_current()
Dbacking-dev-defs.h176 struct cgroup_subsys_state *memcg_css; /* the associated memcg */
177 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);
/Linux-v5.4/kernel/cgroup/
Dpids.c41 struct cgroup_subsys_state css;
57 static struct pids_cgroup *css_pids(struct cgroup_subsys_state *css) in css_pids()
67 static struct cgroup_subsys_state *
68 pids_css_alloc(struct cgroup_subsys_state *parent) in pids_css_alloc()
82 static void pids_css_free(struct cgroup_subsys_state *css) in pids_css_free()
172 struct cgroup_subsys_state *dst_css; in pids_can_attach()
176 struct cgroup_subsys_state *old_css; in pids_can_attach()
197 struct cgroup_subsys_state *dst_css; in pids_cancel_attach()
201 struct cgroup_subsys_state *old_css; in pids_cancel_attach()
218 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.c221 static struct cgroup_subsys_state *css_create(struct cgroup *cgrp,
224 static void kill_css(struct cgroup_subsys_state *css);
225 static int cgroup_addrm_files(struct cgroup_subsys_state *css,
466 static struct cgroup_subsys_state *cgroup_css(struct cgroup *cgrp, in cgroup_css()
484 static struct cgroup_subsys_state *cgroup_tryget_css(struct cgroup *cgrp, in cgroup_tryget_css()
487 struct cgroup_subsys_state *css; in cgroup_tryget_css()
508 static struct cgroup_subsys_state *cgroup_e_css_by_mask(struct cgroup *cgrp, in cgroup_e_css_by_mask()
542 struct cgroup_subsys_state *cgroup_e_css(struct cgroup *cgrp, in cgroup_e_css()
545 struct cgroup_subsys_state *css; in cgroup_e_css()
569 struct cgroup_subsys_state *cgroup_get_e_css(struct cgroup *cgrp, in cgroup_get_e_css()
[all …]
Dcpuset.c82 struct cgroup_subsys_state css;
192 static inline struct cpuset *css_cs(struct cgroup_subsys_state *css) in css_cs()
565 struct cgroup_subsys_state *css; in validate_change()
657 struct cgroup_subsys_state *pos_css; in update_domain_attr_tree()
744 struct cgroup_subsys_state *pos_css; in generate_sched_domains()
926 struct cgroup_subsys_state *pos_css; in rebuild_root_domains()
1297 struct cgroup_subsys_state *pos_css; in update_cpumasks_hier()
1451 struct cgroup_subsys_state *pos_css; in update_sibling_cpumasks()
1711 struct cgroup_subsys_state *pos_css; in update_nodemasks_hier()
2107 struct cgroup_subsys_state *css; in cpuset_can_attach()
[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()
/Linux-v5.4/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()
72 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.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()
237 struct cgroup_subsys_state *css; in net_prio_attach()
/Linux-v5.4/kernel/sched/
Dcpuacct.c29 struct cgroup_subsys_state css;
35 static inline struct cpuacct *css_ca(struct cgroup_subsys_state *css) in css_ca()
58 static struct cgroup_subsys_state *
59 cpuacct_css_alloc(struct cgroup_subsys_state *parent_css) in cpuacct_css_alloc()
89 static void cpuacct_css_free(struct cgroup_subsys_state *css) in cpuacct_css_free()
155 static u64 __cpuusage_read(struct cgroup_subsys_state *css, in __cpuusage_read()
168 static u64 cpuusage_user_read(struct cgroup_subsys_state *css, in cpuusage_user_read()
174 static u64 cpuusage_sys_read(struct cgroup_subsys_state *css, in cpuusage_sys_read()
180 static u64 cpuusage_read(struct cgroup_subsys_state *css, struct cftype *cft) in cpuusage_read()
185 static int cpuusage_write(struct cgroup_subsys_state *css, struct cftype *cft, in cpuusage_write()
Dcore.c1078 uclamp_update_active_tasks(struct cgroup_subsys_state *css, in uclamp_update_active_tasks()
1095 static void cpu_util_update_eff(struct cgroup_subsys_state *css);
7062 static inline struct task_group *css_tg(struct cgroup_subsys_state *css) in css_tg()
7067 static struct cgroup_subsys_state *
7068 cpu_cgroup_css_alloc(struct cgroup_subsys_state *parent_css) in cpu_cgroup_css_alloc()
7086 static int cpu_cgroup_css_online(struct cgroup_subsys_state *css) in cpu_cgroup_css_online()
7096 static void cpu_cgroup_css_released(struct cgroup_subsys_state *css) in cpu_cgroup_css_released()
7103 static void cpu_cgroup_css_free(struct cgroup_subsys_state *css) in cpu_cgroup_css_free()
7133 struct cgroup_subsys_state *css; in cpu_cgroup_can_attach()
7164 struct cgroup_subsys_state *css; in cpu_cgroup_attach()
[all …]
/Linux-v5.4/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()
92 static struct cgroup_subsys_state *
93 hugetlb_cgroup_css_alloc(struct cgroup_subsys_state *parent_css) in hugetlb_cgroup_css_alloc()
109 static void hugetlb_cgroup_css_free(struct cgroup_subsys_state *css) in hugetlb_cgroup_css_free()
161 static void hugetlb_cgroup_css_offline(struct cgroup_subsys_state *css) in hugetlb_cgroup_css_offline()
264 static u64 hugetlb_cgroup_read_u64(struct cgroup_subsys_state *css, in hugetlb_cgroup_read_u64()
Dmemcontrol.c263 struct cgroup_subsys_state *vmpressure_to_css(struct vmpressure *vmpr) in vmpressure_to_css()
456 struct cgroup_subsys_state *mem_cgroup_css_from_page(struct page *page) in mem_cgroup_css_from_page()
1030 struct cgroup_subsys_state *css = NULL; in mem_cgroup_iter()
3302 static u64 mem_cgroup_hierarchy_read(struct cgroup_subsys_state *css, in mem_cgroup_hierarchy_read()
3308 static int mem_cgroup_hierarchy_write(struct cgroup_subsys_state *css, in mem_cgroup_hierarchy_write()
3364 static u64 mem_cgroup_read_u64(struct cgroup_subsys_state *css, in mem_cgroup_read_u64()
3504 struct cgroup_subsys_state *css; in memcg_offline_kmem()
3712 static u64 mem_cgroup_move_charge_read(struct cgroup_subsys_state *css, in mem_cgroup_move_charge_read()
3719 static int mem_cgroup_move_charge_write(struct cgroup_subsys_state *css, in mem_cgroup_move_charge_write()
3737 static int mem_cgroup_move_charge_write(struct cgroup_subsys_state *css, in mem_cgroup_move_charge_write()
[all …]
/Linux-v5.4/security/
Ddevice_cgroup.c41 struct cgroup_subsys_state css;
46 static inline struct dev_cgroup *css_to_devcgroup(struct cgroup_subsys_state *s) in css_to_devcgroup()
174 static int devcgroup_online(struct cgroup_subsys_state *css) in devcgroup_online()
195 static void devcgroup_offline(struct cgroup_subsys_state *css) in devcgroup_offline()
207 static struct cgroup_subsys_state *
208 devcgroup_css_alloc(struct cgroup_subsys_state *parent_css) in devcgroup_css_alloc()
221 static void devcgroup_css_free(struct cgroup_subsys_state *css) in devcgroup_css_free()
536 struct cgroup_subsys_state *pos; in propagate_exception()
/Linux-v5.4/block/
Dblk-cgroup.c50 struct cgroup_subsys_state * const blkcg_root_css = &blkcg_root.css;
462 static int blkcg_reset_stats(struct cgroup_subsys_state *css, in blkcg_reset_stats()
719 struct cgroup_subsys_state *pos_css; in blkg_rwstat_recursive_sum()
1057 static void blkcg_css_offline(struct cgroup_subsys_state *css) in blkcg_css_offline()
1101 static void blkcg_css_free(struct cgroup_subsys_state *css) in blkcg_css_free()
1119 static struct cgroup_subsys_state *
1120 blkcg_css_alloc(struct cgroup_subsys_state *parent_css) in blkcg_css_alloc()
1123 struct cgroup_subsys_state *ret; in blkcg_css_alloc()
1283 struct cgroup_subsys_state *dst_css; in blkcg_can_attach()
1300 static void blkcg_bind(struct cgroup_subsys_state *root_css) in blkcg_bind()
[all …]
/Linux-v5.4/include/net/
Dnetprio_cgroup.h24 struct cgroup_subsys_state *css; in task_netprioidx()
Dcls_cgroup.h19 struct cgroup_subsys_state css;
/Linux-v5.4/drivers/block/
Dloop.h74 struct cgroup_subsys_state *css;

12