Home
last modified time | relevance | path

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

123

/linux/include/linux/
H A Dcgroup-defs.h181 struct cgroup_subsys_state { struct
246 struct cgroup_subsys_state *parent; argument
276 struct cgroup_subsys_state *rstat_flush_next; argument
292 struct cgroup_subsys_state *subsys[CGROUP_SUBSYS_COUNT];
410 struct cgroup_subsys_state *updated_children;
411 struct cgroup_subsys_state *updated_next; /* NULL if not on the list */
414 struct cgroup_subsys_state *owner; /* back pointer */
488 struct cgroup_subsys_state self;
553 struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
735 u64 (*read_u64)(struct cgroup_subsys_state *css, struct cftype *cft);
[all …]
H A Dblk-cgroup.h22 struct cgroup_subsys_state;
28 extern struct cgroup_subsys_state * const blkcg_root_css;
52 void blkcg_pin_online(struct cgroup_subsys_state *blkcg_css);
53 void blkcg_unpin_online(struct cgroup_subsys_state *blkcg_css);
54 struct list_head *blkcg_get_cgwb_list(struct cgroup_subsys_state *css);
55 struct cgroup_subsys_state *bio_blkcg_css(struct bio *bio);
59 #define blkcg_root_css ((struct cgroup_subsys_state *)ERR_PTR(-EINVAL))
63 static inline struct cgroup_subsys_state *bio_blkcg_css(struct bio *bio) in bio_blkcg_css()
H A Dcgroup_refcnt.h8 void css_get(struct cgroup_subsys_state *css) in css_get()
23 void css_get_many(struct cgroup_subsys_state *css, unsigned int n) in CGROUP_REF_EXPORT()
42 bool css_tryget(struct cgroup_subsys_state *css) in CGROUP_REF_EXPORT()
61 bool css_tryget_online(struct cgroup_subsys_state *css) in CGROUP_REF_EXPORT()
76 void css_put(struct cgroup_subsys_state *css) in CGROUP_REF_EXPORT()
91 void css_put_many(struct cgroup_subsys_state *css, unsigned int n) in CGROUP_REF_EXPORT()
H A Dkthread.h285 struct cgroup_subsys_state;
288 void kthread_associate_blkcg(struct cgroup_subsys_state *css);
289 struct cgroup_subsys_state *kthread_blkcg(void);
291 static inline void kthread_associate_blkcg(struct cgroup_subsys_state *css) { } in kthread_associate_blkcg()
H A Dmisc_cgroup.h57 struct cgroup_subsys_state css;
80 static inline struct misc_cg *css_misc(struct cgroup_subsys_state *css) in css_misc()
/linux/kernel/cgroup/
H A Dlegacy_freezer.c38 struct cgroup_subsys_state css;
44 static inline struct freezer *css_freezer(struct cgroup_subsys_state *css) in css_freezer()
79 static struct cgroup_subsys_state *
80 freezer_css_alloc(struct cgroup_subsys_state *parent_css) in freezer_css_alloc()
98 static int freezer_css_online(struct cgroup_subsys_state *css) in freezer_css_online()
125 static void freezer_css_offline(struct cgroup_subsys_state *css) in freezer_css_offline()
141 static void freezer_css_free(struct cgroup_subsys_state *css) in freezer_css_free()
158 struct cgroup_subsys_state *new_css; in freezer_attach()
241 static void update_if_frozen(struct cgroup_subsys_state *css) in update_if_frozen()
244 struct cgroup_subsys_state *pos; in update_if_frozen()
[all …]
H A Drstat.c24 static inline bool css_uses_rstat(struct cgroup_subsys_state *css) in css_uses_rstat()
30 struct cgroup_subsys_state *css, int cpu) in css_rstat_cpu()
71 void __css_rstat_updated(struct cgroup_subsys_state *css, int cpu) in __css_rstat_updated()
129 __bpf_kfunc void css_rstat_updated(struct cgroup_subsys_state *css, int cpu) in css_rstat_updated()
137 static void __css_process_update_tree(struct cgroup_subsys_state *css, int cpu) in __css_process_update_tree()
142 struct cgroup_subsys_state *parent = css->parent; in __css_process_update_tree()
207 static struct cgroup_subsys_state *css_rstat_push_children( in css_rstat_push_children()
208 struct cgroup_subsys_state *head, in css_rstat_push_children()
209 struct cgroup_subsys_state *child, int cpu) in css_rstat_push_children()
211 struct cgroup_subsys_state *cnext = child; /* Next head of child css level */ in css_rstat_push_children()
[all …]
H A Dpids.c50 struct cgroup_subsys_state css;
68 static struct pids_cgroup *css_pids(struct cgroup_subsys_state *css) in css_pids()
78 static struct cgroup_subsys_state *
79 pids_css_alloc(struct cgroup_subsys_state *parent) in pids_css_alloc()
91 static void pids_css_free(struct cgroup_subsys_state *css) in pids_css_free()
203 struct cgroup_subsys_state *dst_css; in pids_can_attach()
207 struct cgroup_subsys_state *old_css; in pids_can_attach()
228 struct cgroup_subsys_state *dst_css; in pids_cancel_attach()
232 struct cgroup_subsys_state *old_css; in pids_cancel_attach()
304 struct cgroup_subsys_state *css = of_css(of); in pids_max_write()
[all …]
H A 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_obj(*css); 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()
74 static u64 current_css_set_refcount_read(struct cgroup_subsys_state *css, in current_css_set_refcount_read()
112 struct cgroup_subsys_state *css = seq_css(seq); in cgroup_css_links_read()
204 struct cgroup_subsys_state *css; in cgroup_subsys_states_read()
267 static u64 releasable_read(struct cgroup_subsys_state *css, struct cftype *cft) in releasable_read()
H A Dcgroup.c277 static void kill_css_sync(struct cgroup_subsys_state *css);
278 static void kill_css_finish(struct cgroup_subsys_state *css);
279 static struct cgroup_subsys_state *css_create(struct cgroup *cgrp,
282 static int cgroup_addrm_files(struct cgroup_subsys_state *css,
514 static struct cgroup_subsys_state *cgroup_e_css_by_mask(struct cgroup *cgrp, in cgroup_e_css_by_mask()
548 struct cgroup_subsys_state *cgroup_e_css(struct cgroup *cgrp, in cgroup_e_css()
551 struct cgroup_subsys_state *css; in cgroup_e_css()
578 struct cgroup_subsys_state *cgroup_get_e_css(struct cgroup *cgrp, in cgroup_get_e_css()
581 struct cgroup_subsys_state *css; in cgroup_get_e_css()
656 struct cgroup_subsys_state *of_css(struct kernfs_open_file *of) in of_css()
[all …]
H A Dcpuset-v1.c165 static int cpuset_write_s64(struct cgroup_subsys_state *css, struct cftype *cft, in cpuset_write_s64()
190 static s64 cpuset_read_s64(struct cgroup_subsys_state *css, struct cftype *cft) in cpuset_read_s64()
348 struct cgroup_subsys_state *css; in cpuset1_validate_change()
414 struct cgroup_subsys_state *css; in proc_cpuset_show()
444 static u64 cpuset_read_u64(struct cgroup_subsys_state *css, struct cftype *cft) in cpuset_read_u64()
476 static int cpuset_write_u64(struct cgroup_subsys_state *css, struct cftype *cft, in cpuset_write_u64()
536 void cpuset1_online_css(struct cgroup_subsys_state *css) in cpuset1_online_css()
539 struct cgroup_subsys_state *pos_css; in cpuset1_online_css()
595 struct cgroup_subsys_state *pos_css; in update_domain_attr_tree()
635 struct cgroup_subsys_state *pos_css; in cpuset1_generate_sched_domains()
H A Dcpuset-internal.h76 struct cgroup_subsys_state css;
196 static inline struct cpuset *css_cs(struct cgroup_subsys_state *css) in css_cs()
328 void cpuset1_online_css(struct cgroup_subsys_state *css);
344 static inline void cpuset1_online_css(struct cgroup_subsys_state *css) {} in cpuset1_online_css()
H A Ddmem.c73 struct cgroup_subsys_state css;
114 css_to_dmemcs(struct cgroup_subsys_state *css) in dmemcg_pool_get()
245 static void dmemcs_offline(struct cgroup_subsys_state *css) in pool_parent()
256 static void dmemcs_free(struct cgroup_subsys_state *css) in dmem_cgroup_calculate_protection()
275 static struct cgroup_subsys_state * in dmem_cgroup_calculate_protection()
276 dmemcs_alloc(struct cgroup_subsys_state *parent_css) in dmem_cgroup_calculate_protection()
311 struct cgroup_subsys_state *css; in dmem_cgroup_state_evict_valuable()
835 struct cgroup_subsys_state *ancestor_css; in dmem_cgroup_region_low_write()
H A Dmisc.c439 static struct cgroup_subsys_state *
440 misc_cg_alloc(struct cgroup_subsys_state *parent_css) in misc_cg_alloc()
467 static void misc_cg_free(struct cgroup_subsys_state *css) in misc_cg_free()
/linux/net/core/
H A Dnetclassid_cgroup.c16 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()
109 struct cgroup_subsys_state *css; in cgrp_attach()
117 static u64 read_classid(struct cgroup_subsys_state *css, struct cftype *cft) in read_classid()
122 static int write_classid(struct cgroup_subsys_state *css, struct cftype *cft, in write_classid()
H A 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/kernel/sched/
H A Dcpuacct.c27 struct cgroup_subsys_state css;
33 static inline struct cpuacct *css_ca(struct cgroup_subsys_state *css) in css_ca()
56 static struct cgroup_subsys_state *
57 cpuacct_css_alloc(struct cgroup_subsys_state *parent_css) in cpuacct_css_alloc()
87 static void cpuacct_css_free(struct cgroup_subsys_state *css) in cpuacct_css_free()
163 static u64 __cpuusage_read(struct cgroup_subsys_state *css, in __cpuusage_read()
176 static u64 cpuusage_user_read(struct cgroup_subsys_state *css, in cpuusage_user_read()
182 static u64 cpuusage_sys_read(struct cgroup_subsys_state *css, in cpuusage_sys_read()
188 static u64 cpuusage_read(struct cgroup_subsys_state *css, struct cftype *cft) in cpuusage_read()
193 static int cpuusage_write(struct cgroup_subsys_state *css, struct cftype *cft, in cpuusage_write()
/linux/tools/testing/selftests/bpf/progs/
H A Diters_css_task.c26 struct cgroup_subsys_state *css; in BPF_PROG()
60 struct cgroup_subsys_state *css; in cgroup_id_printer()
90 struct cgroup_subsys_state *css; in BPF_PROG()
H A Diters_task_failure.c35 struct cgroup_subsys_state *root_css, *pos; in BPF_PROG()
116 struct cgroup_subsys_state *root_css, *pos; in BPF_PROG()
139 struct cgroup_subsys_state *css; in BPF_PROG()
H A Dcgroup_read_xattr.c61 struct cgroup_subsys_state *css; in BPF_PROG()
80 struct cgroup_subsys_state *css; in BPF_PROG()
99 struct cgroup_subsys_state *css; in BPF_PROG()
/linux/security/
H A Ddevice_cgroup.c44 struct cgroup_subsys_state css;
49 static inline struct dev_cgroup *css_to_devcgroup(struct cgroup_subsys_state *s) in css_to_devcgroup()
188 static int devcgroup_online(struct cgroup_subsys_state *css) in devcgroup_online()
209 static void devcgroup_offline(struct cgroup_subsys_state *css) in devcgroup_offline()
221 static struct cgroup_subsys_state *
222 devcgroup_css_alloc(struct cgroup_subsys_state *parent_css) in devcgroup_css_alloc()
235 static void devcgroup_css_free(struct cgroup_subsys_state *css) in devcgroup_css_free()
545 struct cgroup_subsys_state *pos; in propagate_exception()
/linux/block/
H A Dblk-cgroup.c53 struct cgroup_subsys_state * const blkcg_root_css = &blkcg_root.css;
107 static struct cgroup_subsys_state *blkcg_css(void) in blkcg_css()
109 struct cgroup_subsys_state *css; in blkcg_css()
279 struct cgroup_subsys_state *bio_blkcg_css(struct bio *bio) in bio_blkcg_css()
652 static int blkcg_reset_stats(struct cgroup_subsys_state *css, in blkcg_reset_stats()
1076 static void blkcg_rstat_flush(struct cgroup_subsys_state *css, int cpu) in blkcg_rstat_flush()
1221 struct list_head *blkcg_get_cgwb_list(struct cgroup_subsys_state *css) in blkcg_get_cgwb_list()
1304 void blkcg_pin_online(struct cgroup_subsys_state *blkcg_css) in blkcg_pin_online()
1318 void blkcg_unpin_online(struct cgroup_subsys_state *blkcg_css) in blkcg_unpin_online()
1342 static void blkcg_css_offline(struct cgroup_subsys_state *css) in blkcg_css_offline()
[all …]
/linux/tools/testing/selftests/bpf/
H A Dbpf_experimental.h333 struct cgroup_subsys_state;
335 struct cgroup_subsys_state *css, unsigned int flags) __weak __ksym;
347 struct cgroup_subsys_state *start, unsigned int flags) __weak __ksym;
348 extern struct cgroup_subsys_state *bpf_iter_css_next(struct bpf_iter_css *it) __weak __ksym;
/linux/mm/
H A Dhugetlb_cgroup.c57 struct hugetlb_cgroup *hugetlb_cgroup_from_css(struct cgroup_subsys_state *s) in hugetlb_cgroup_from_css()
135 static struct cgroup_subsys_state *
136 hugetlb_cgroup_css_alloc(struct cgroup_subsys_state *parent_css) in hugetlb_cgroup_css_alloc()
174 static void hugetlb_cgroup_css_free(struct cgroup_subsys_state *css) in hugetlb_cgroup_css_free()
222 static void hugetlb_cgroup_css_offline(struct cgroup_subsys_state *css) in hugetlb_cgroup_css_offline()
463 struct cgroup_subsys_state *css; in hugetlb_cgroup_read_numa_stat()
509 static u64 hugetlb_cgroup_read_u64(struct cgroup_subsys_state *css, in hugetlb_cgroup_read_u64()
/linux/tools/perf/util/bpf_skel/vmlinux/
H A Dvmlinux.h87 struct cgroup_subsys_state { struct
92 struct cgroup_subsys_state *subsys[13]; argument

123