Home
last modified time | relevance | path

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

123

/linux/include/linux/
H A 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,
144 struct cgroup_subsys_state *css_next_child(struct cgroup_subsys_state *pos,
145 struct cgroup_subsys_state *parent);
146 struct cgroup_subsys_state *css_next_descendant_pre(struct cgroup_subsys_state *pos,
147 struct cgroup_subsys_state *css);
148 struct cgroup_subsys_state *css_rightmost_descendant(struct cgroup_subsys_state *pos);
[all …]
H A Dcgroup-defs.h165 struct cgroup_subsys_state { struct
216 struct cgroup_subsys_state *parent; argument
240 struct cgroup_subsys_state *subsys[CGROUP_SUBSYS_COUNT];
417 struct cgroup_subsys_state self;
484 struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
661 u64 (*read_u64)(struct cgroup_subsys_state *css, struct cftype *cft);
665 s64 (*read_s64)(struct cgroup_subsys_state *css, struct cftype *cft);
680 int (*write_u64)(struct cgroup_subsys_state *css, struct cftype *cft,
685 int (*write_s64)(struct cgroup_subsys_state *css, struct cftype *cft,
708 struct cgroup_subsys_state *(*css_alloc)(struct cgroup_subsys_state *parent_css);
[all …]
H A Dblk-cgroup.h20 struct cgroup_subsys_state;
26 extern struct cgroup_subsys_state * const blkcg_root_css;
31 void blkcg_pin_online(struct cgroup_subsys_state *blkcg_css);
32 void blkcg_unpin_online(struct cgroup_subsys_state *blkcg_css);
33 struct list_head *blkcg_get_cgwb_list(struct cgroup_subsys_state *css);
34 struct cgroup_subsys_state *bio_blkcg_css(struct bio *bio);
38 #define blkcg_root_css ((struct cgroup_subsys_state *)ERR_PTR(-EINVAL))
42 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 Dbacking-dev.h154 struct cgroup_subsys_state *memcg_css);
156 struct cgroup_subsys_state *memcg_css,
159 void wb_blkcg_offline(struct cgroup_subsys_state *css);
192 struct cgroup_subsys_state *memcg_css; in wb_find_current()
231 struct cgroup_subsys_state *memcg_css; in wb_get_create_current()
366 static inline void wb_blkcg_offline(struct cgroup_subsys_state *css) in wb_blkcg_offline()
H A Dkthread.h219 struct cgroup_subsys_state;
222 void kthread_associate_blkcg(struct cgroup_subsys_state *css);
223 struct cgroup_subsys_state *kthread_blkcg(void);
225 static inline void kthread_associate_blkcg(struct cgroup_subsys_state *css) { } in kthread_associate_blkcg()
H A Dmisc_cgroup.h53 struct cgroup_subsys_state css;
77 static inline struct misc_cg *css_misc(struct cgroup_subsys_state *css) in css_misc()
H A Dbacking-dev-defs.h149 struct cgroup_subsys_state *memcg_css; /* the associated memcg */
150 struct cgroup_subsys_state *blkcg_css; /* and blkcg */
/linux/kernel/cgroup/
H A Dlegacy_freezer.c45 struct cgroup_subsys_state css;
51 static inline struct freezer *css_freezer(struct cgroup_subsys_state *css) in css_freezer()
92 static struct cgroup_subsys_state *
93 freezer_css_alloc(struct cgroup_subsys_state *parent_css) in freezer_css_alloc()
111 static int freezer_css_online(struct cgroup_subsys_state *css) in freezer_css_online()
138 static void freezer_css_offline(struct cgroup_subsys_state *css) in freezer_css_offline()
154 static void freezer_css_free(struct cgroup_subsys_state *css) in freezer_css_free()
171 struct cgroup_subsys_state *new_css; in freezer_attach()
255 static void update_if_frozen(struct cgroup_subsys_state *css) in update_if_frozen()
258 struct cgroup_subsys_state *pos; in update_if_frozen()
[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(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()
H A Dcgroup.c246 static struct cgroup_subsys_state *css_create(struct cgroup *cgrp,
249 static void kill_css(struct cgroup_subsys_state *css);
250 static int cgroup_addrm_files(struct cgroup_subsys_state *css,
487 static struct cgroup_subsys_state *cgroup_css(struct cgroup *cgrp, in cgroup_css()
507 static struct cgroup_subsys_state *cgroup_e_css_by_mask(struct cgroup *cgrp, in cgroup_e_css_by_mask()
541 struct cgroup_subsys_state *cgroup_e_css(struct cgroup *cgrp, in cgroup_e_css()
544 struct cgroup_subsys_state *css; in cgroup_e_css()
571 struct cgroup_subsys_state *cgroup_get_e_css(struct cgroup *cgrp, in cgroup_get_e_css()
574 struct cgroup_subsys_state *css; in cgroup_get_e_css()
636 struct cgroup_subsys_state *of_css(struct kernfs_open_file *of) in of_css()
[all …]
H A Dcpuset-v1.c164 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()
353 struct cgroup_subsys_state *css; in cpuset1_validate_change()
376 static u64 cpuset_read_u64(struct cgroup_subsys_state *css, struct cftype *cft) in cpuset_read_u64()
408 static int cpuset_write_u64(struct cgroup_subsys_state *css, struct cftype *cft, in cpuset_write_u64()
H A Drdma.c67 static struct rdma_cgroup *css_rdmacg(struct cgroup_subsys_state *css) in css_rdmacg()
564 static struct cgroup_subsys_state *
565 rdmacg_css_alloc(struct cgroup_subsys_state *parent) in rdmacg_css_alloc()
577 static void rdmacg_css_free(struct cgroup_subsys_state *css) in rdmacg_css_free()
593 static void rdmacg_css_offline(struct cgroup_subsys_state *css) in rdmacg_css_offline()
H A Dcpuset.c328 struct cgroup_subsys_state *css; in partition_is_populated()
551 struct cgroup_subsys_state *css; in validate_change()
673 struct cgroup_subsys_state *pos_css; in update_domain_attr_tree()
757 struct cgroup_subsys_state *pos_css; in generate_sched_domains()
957 struct cgroup_subsys_state *pos_css; in dl_rebuild_rd_accounting()
1013 struct cgroup_subsys_state *pos_css; in rebuild_sched_domains_locked()
1767 struct cgroup_subsys_state *css; in update_parent_effective_cpumask()
1906 struct cgroup_subsys_state *css; in compute_partition_effective_cpumask()
1971 struct cgroup_subsys_state *pos_css; in update_cpumasks_hier()
2150 struct cgroup_subsys_state *pos_css; in update_sibling_cpumasks()
[all …]
/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()
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()
107 struct cgroup_subsys_state *css; in cgrp_attach()
115 static u64 read_classid(struct cgroup_subsys_state *css, struct cftype *cft) in read_classid()
120 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/bpf/
H A Dcgroup_iter.c51 struct cgroup_subsys_state *start_css;
86 struct cgroup_subsys_state *css, int in_stop);
103 struct cgroup_subsys_state *curr = (struct cgroup_subsys_state *)v; in cgroup_iter_seq_next()
121 struct cgroup_subsys_state *css, int in_stop) in __cgroup_iter_seq_show()
149 return __cgroup_iter_seq_show(seq, (struct cgroup_subsys_state *)v, in cgroup_iter_seq_show()
303 struct cgroup_subsys_state *start;
304 struct cgroup_subsys_state *pos;
311 struct cgroup_subsys_state *start, unsigned int flags) in bpf_iter_css_new()
334 __bpf_kfunc struct cgroup_subsys_state *bpf_iter_css_next(struct bpf_iter_css *it) in bpf_iter_css_next()
/linux/kernel/sched/
H A Dcpuacct.c25 struct cgroup_subsys_state css;
31 static inline struct cpuacct *css_ca(struct cgroup_subsys_state *css) in css_ca()
54 static struct cgroup_subsys_state *
55 cpuacct_css_alloc(struct cgroup_subsys_state *parent_css) in cpuacct_css_alloc()
85 static void cpuacct_css_free(struct cgroup_subsys_state *css) in cpuacct_css_free()
161 static u64 __cpuusage_read(struct cgroup_subsys_state *css, in __cpuusage_read()
174 static u64 cpuusage_user_read(struct cgroup_subsys_state *css, in cpuusage_user_read()
180 static u64 cpuusage_sys_read(struct cgroup_subsys_state *css, in cpuusage_sys_read()
186 static u64 cpuusage_read(struct cgroup_subsys_state *css, struct cftype *cft) in cpuusage_read()
191 static int cpuusage_write(struct cgroup_subsys_state *css, struct cftype *cft, in cpuusage_write()
/linux/tools/testing/selftests/bpf/progs/
H A Diters_task_failure.c35 struct cgroup_subsys_state *root_css, *pos; in BPF_PROG()
70 struct cgroup_subsys_state *root_css, *pos; in BPF_PROG()
93 struct cgroup_subsys_state *css; in BPF_PROG()
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()
/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()
551 struct cgroup_subsys_state *pos; in propagate_exception()
/linux/tools/testing/selftests/bpf/
H A Dbpf_experimental.h560 struct cgroup_subsys_state;
562 struct cgroup_subsys_state *css, unsigned int flags) __weak __ksym;
574 struct cgroup_subsys_state *start, unsigned int flags) __weak __ksym;
575 extern struct cgroup_subsys_state *bpf_iter_css_next(struct bpf_iter_css *it) __weak __ksym;
/linux/mm/
H A Dhugetlb_cgroup.c64 struct hugetlb_cgroup *hugetlb_cgroup_from_css(struct cgroup_subsys_state *s) in hugetlb_cgroup_from_css()
145 static struct cgroup_subsys_state *
146 hugetlb_cgroup_css_alloc(struct cgroup_subsys_state *parent_css) in hugetlb_cgroup_css_alloc()
185 static void hugetlb_cgroup_css_free(struct cgroup_subsys_state *css) in hugetlb_cgroup_css_free()
234 static void hugetlb_cgroup_css_offline(struct cgroup_subsys_state *css) in hugetlb_cgroup_css_offline()
475 struct cgroup_subsys_state *css; in hugetlb_cgroup_read_numa_stat()
521 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