| /linux/include/linux/ |
| H A D | cgroup_refcnt.h | 2 * css_get - obtain a reference on the specified css 3 * @css: target css 8 void css_get(struct cgroup_subsys_state *css) in css_get() argument 10 if (!(css->flags & CSS_NO_REF)) in css_get() 11 percpu_ref_get(&css->refcnt); in css_get() 16 * css_get_many - obtain references on the specified css in CGROUP_REF_EXPORT() 17 * @css: target css in CGROUP_REF_EXPORT() 23 void css_get_many(struct cgroup_subsys_state *css, unsigned int n) in CGROUP_REF_EXPORT() 25 if (!(css->flags & CSS_NO_REF)) in CGROUP_REF_EXPORT() 26 percpu_ref_get_many(&css->refcnt, n); in CGROUP_REF_EXPORT() [all …]
|
| H A D | misc_cgroup.h | 52 * @css: cgroup subsys state object. 57 struct cgroup_subsys_state css; member 72 * css_misc() - Get misc cgroup from the css. 73 * @css: cgroup subsys state object. 77 * * %NULL - If @css is null. 78 * * struct misc_cg* - misc cgroup pointer of the passed css. 80 static inline struct misc_cg *css_misc(struct cgroup_subsys_state *css) in css_misc() argument 82 return css ? container_of(css, struct misc_cg, css) : NULL; in css_misc() 105 css_put(&cg->css); in put_misc_cg()
|
| H A D | cgroup-defs.h | 52 CSS_NO_REF = (1 << 0), /* no reference counting for this css */ 55 CSS_VISIBLE = (1 << 3), /* css is visible to userland */ 56 CSS_DYING = (1 << 4), /* css is dying */ 182 /* PI: the cgroup that this css is attached to */ 185 /* PI: the cgroup subsystem that this css is attached to */ 195 * when css is associated with cgroup::self 196 * when css->cgroup is the root cgroup 198 * when css->cgroup is not the root cgroup 200 * when css is associated with a subsystem 201 * when css->cgroup is the root cgroup [all …]
|
| /linux/drivers/staging/media/ipu3/ |
| H A D | ipu3-css-fw.c | 9 #include "ipu3-css.h" 10 #include "ipu3-css-fw.h" 72 void *imgu_css_fw_pipeline_params(struct imgu_css *css, unsigned int pipe, in imgu_css_fw_pipeline_params() argument 79 &css->fwp->binary_header[css->pipes[pipe].bindex]; in imgu_css_fw_pipeline_params() 94 void imgu_css_fw_cleanup(struct imgu_css *css) in imgu_css_fw_cleanup() argument 96 struct imgu_device *imgu = dev_get_drvdata(css->dev); in imgu_css_fw_cleanup() 98 if (css->binary) { in imgu_css_fw_cleanup() 101 for (i = 0; i < css->fwp->file_header.binary_nr; i++) in imgu_css_fw_cleanup() 102 imgu_dmamap_free(imgu, &css->binary[i]); in imgu_css_fw_cleanup() 103 kfree(css->binary); in imgu_css_fw_cleanup() [all …]
|
| H A D | ipu3-css.c | 10 #include "ipu3-css.h" 11 #include "ipu3-css-fw.h" 12 #include "ipu3-css-params.h" 33 * pre-allocated buffer size for CSS ABI, auxiliary frames 174 /******************* css hw *******************/ 199 /* Initialize the IPU3 CSS hardware and associated h/w blocks */ 207 /* Clear the CSS busy signal */ in imgu_css_set_powerup() 214 dev_err(dev, "failed to set CSS idle\n"); in imgu_css_set_powerup() 218 /* Reset the css */ in imgu_css_set_powerup() 224 /** Prepare CSS */ in imgu_css_set_powerup() [all …]
|
| H A D | ipu3-css.h | 11 #include "ipu3-css-pool.h" 166 /******************* css v4l *******************/ 167 int imgu_css_init(struct device *dev, struct imgu_css *css, 169 void imgu_css_cleanup(struct imgu_css *css); 170 int imgu_css_fmt_try(struct imgu_css *css, 174 int imgu_css_fmt_set(struct imgu_css *css, 179 int imgu_css_buf_queue(struct imgu_css *css, unsigned int pipe, 181 struct imgu_css_buffer *imgu_css_buf_dequeue(struct imgu_css *css); 182 int imgu_css_start_streaming(struct imgu_css *css); 183 void imgu_css_stop_streaming(struct imgu_css *css); [all …]
|
| H A D | Makefile | 8 ipu3-tables.o ipu3-css-pool.o \ 9 ipu3-css-fw.o ipu3-css-params.o \ 10 ipu3-css.o ipu3-v4l2.o ipu3.o
|
| /linux/fs/xfs/scrub/ |
| H A D | stats.c | 98 struct xchk_scrub_stats *css = &cs->cs_stats[0]; in xchk_stats_format() 103 for (i = 0; i < XFS_SCRUB_TYPE_NR; i++, css++) { in xchk_stats_format() 109 spin_lock(&css->css_lock); in xchk_stats_format() 110 memcpy(&fss, css, offsetof(struct xchk_scrub_stats, css_lock)); in xchk_stats_format() 111 spin_unlock(&css->css_lock); in xchk_stats_format() 146 struct xchk_scrub_stats *css = &cs->cs_stats[0]; in xchk_stats_estimate_bufsize() 160 for (i = 0; i < XFS_SCRUB_TYPE_NR; i++, css++) { in xchk_stats_estimate_bufsize() 179 struct xchk_scrub_stats *css = &cs->cs_stats[0]; 182 for (i = 0; i < XFS_SCRUB_TYPE_NR; i++, css++) { 183 spin_lock(&css 96 struct xchk_scrub_stats *css = &cs->cs_stats[0]; xchk_stats_format() local 137 struct xchk_scrub_stats *css = &cs->cs_stats[0]; xchk_stats_estimate_bufsize() local 170 struct xchk_scrub_stats *css = &cs->cs_stats[0]; xchk_stats_clearall() local 193 struct xchk_scrub_stats *css; xchk_stats_merge_one() local 317 struct xchk_scrub_stats *css = &cs->cs_stats[0]; xchk_stats_init() local [all...] |
| /linux/kernel/cgroup/ |
| H A D | rstat.c | 19 * Determines whether a given css can participate in rstat. 20 * css's that are cgroup::self use rstat for base stats. 21 * Other css's associated with a subsystem use rstat only when 24 static inline bool css_uses_rstat(struct cgroup_subsys_state *css) in css_uses_rstat() argument 26 return css_is_self(css) || css->ss->css_rstat_flush != NULL; in css_uses_rstat() 30 struct cgroup_subsys_state *css, int cpu) in css_rstat_cpu() argument 32 return per_cpu_ptr(css->rstat_cpu, cpu); in css_rstat_cpu() 58 * @css: target cgroup subsystem state 61 * Atomically inserts the css in the ss's llist for the given cpu. This is 71 void __css_rstat_updated(struct cgroup_subsys_state *css, int cpu) in __css_rstat_updated() argument [all …]
|
| H A D | legacy_freezer.c | 38 struct cgroup_subsys_state css; member 44 static inline struct freezer *css_freezer(struct cgroup_subsys_state *css) in css_freezer() argument 46 return css ? container_of(css, struct freezer, css) : NULL; in css_freezer() 56 return css_freezer(freezer->css.parent); in parent_freezer() 88 return &freezer->css; in freezer_css_alloc() 92 * freezer_css_online - commit creation of a freezer css 93 * @css: css being created 95 * We're committing to creation of @css. Mark it online and inherit 98 static int freezer_css_online(struct cgroup_subsys_state *css) in freezer_css_online() argument 100 struct freezer *freezer = css_freezer(css); in freezer_css_online() [all …]
|
| H A D | debug.c | 17 struct cgroup_subsys_state *css = kzalloc_obj(*css); in debug_css_alloc() local 19 if (!css) in debug_css_alloc() 22 return css; in debug_css_alloc() 25 static void debug_css_free(struct cgroup_subsys_state *css) in debug_css_free() argument 27 kfree(css); in debug_css_free() 34 static u64 debug_taskcount_read(struct cgroup_subsys_state *css, in debug_taskcount_read() argument 37 return cgroup_task_count(css->cgroup); in debug_taskcount_read() 45 struct cgroup_subsys_state *css; in current_css_set_read() local 60 * Print the css'es stored in the current css_set. in current_css_set_read() 63 css = cset->subsys[ss->id]; in current_css_set_read() [all …]
|
| H A D | cgroup.c | 118 * cgroup_offline_wq: use for css offline work 119 * cgroup_release_wq: use for css release work 123 * The cgroup root free work may depend on completion of other css offline 126 * - Free work waits for other css offline work to complete. 127 * - But other css offline work is queued after free work in the same queue. 132 * 3. perf_event CSS A offline enqueues work to same cgroup_destroy_wq (CPUx) 134 * 5. net_prio root destruction blocks waiting for perf_event CSS A offline, 205 * root css so the affected tasks are migrated there before 277 static void kill_css_sync(struct cgroup_subsys_state *css); 278 static void kill_css_finish(struct cgroup_subsys_state *css); 551 struct cgroup_subsys_state *css; cgroup_e_css() local 581 struct cgroup_subsys_state *css; cgroup_get_e_css() local 684 for_each_css(css,ssid,cgrp) global() argument 781 css_update_populated(struct cgroup_subsys_state * css,bool populated) css_update_populated() argument 861 struct cgroup_subsys_state *css = cset->subsys[ssid]; css_set_update_populated() local 941 css_set_hash(struct cgroup_subsys_state ** css) css_set_hash() argument 1277 struct cgroup_subsys_state *css = cset->subsys[ssid]; find_css_set() local 1735 struct cgroup_subsys_state *css = cgroup_css(cgrp, cft->ss); cgroup_rm_file() local 1752 css_clear_dir(struct cgroup_subsys_state * css) css_clear_dir() argument 1785 css_populate_dir(struct cgroup_subsys_state * css) css_populate_dir() argument 1891 struct cgroup_subsys_state *css = cgroup_css(scgrp, ss); rebind_subsystems() local 3339 struct cgroup_subsys_state *css = cgroup_css(dsct, ss); cgroup_lock_and_drain_offline() local 3420 css_visible(struct cgroup_subsys_state * css) css_visible() argument 3454 struct cgroup_subsys_state *css = cgroup_css(dsct, ss); cgroup_apply_control_enable() local 3500 struct cgroup_subsys_state *css = cgroup_css(dsct, ss); cgroup_apply_control_disable() local 3902 struct cgroup_subsys_state *css; cgroup_stat_show() local 3972 struct cgroup_subsys_state *css; cgroup_tryget_css() local 3987 struct cgroup_subsys_state *css; cgroup_extra_stat_show() local 4006 struct cgroup_subsys_state *css; cgroup_local_stat_show() local 4309 struct cgroup_subsys_state *css; cgroup_kill() local 4394 struct cgroup_subsys_state *css; cgroup_file_write() local 4470 struct cgroup_subsys_state *css = seq_css(m); cgroup_seqfile_show() local 4511 cgroup_add_file(struct cgroup_subsys_state * css,struct cgroup * cgrp,struct cftype * cft) cgroup_add_file() argument 4550 cgroup_addrm_files(struct cgroup_subsys_state * css,struct cgroup * cgrp,struct cftype cfts[],bool is_add) cgroup_addrm_files() argument 4592 struct cgroup_subsys_state *css; cgroup_apply_cftypes() local 5053 css_has_online_children(struct cgroup_subsys_state * css) css_has_online_children() argument 5259 css_task_iter_start(struct cgroup_subsys_state * css,unsigned int flags,struct css_task_iter * it) css_task_iter_start() argument 5693 struct cgroup_subsys_state *css = container_of(to_rcu_work(work), css_free_rwork_fn() local 5744 struct cgroup_subsys_state *css = css_release_work_fn() local 5811 struct cgroup_subsys_state *css = css_release() local 5825 struct cgroup_subsys_state *css = kill_css_finish_work_fn() local 5834 init_and_link_css(struct cgroup_subsys_state * css,struct cgroup_subsys * ss,struct cgroup * cgrp) init_and_link_css() argument 5860 online_css(struct cgroup_subsys_state * css) online_css() argument 5884 offline_css(struct cgroup_subsys_state * css) offline_css() argument 5916 struct cgroup_subsys_state *css; css_create() local 6173 struct cgroup_subsys_state *css; css_killed_work_fn() local 6192 struct cgroup_subsys_state *css = css_killed_ref_fn() local 6207 kill_css_sync(struct cgroup_subsys_state * css) kill_css_sync() argument 6254 kill_css_finish(struct cgroup_subsys_state * css) kill_css_finish() argument 6319 struct cgroup_subsys_state *css; cgroup_destroy_locked() local 6420 struct cgroup_subsys_state *css; cgroup_init_subsys() local 6551 struct cgroup_subsys_state *css = cgroup_init() local 6815 struct cgroup_subsys_state *css; cgroup_v1v2_get_from_file() local 7325 struct cgroup_subsys_state *css = NULL; css_tryget_online_from_dir() local [all...] |
| H A D | pids.c | 50 struct cgroup_subsys_state css; member 68 static struct pids_cgroup *css_pids(struct cgroup_subsys_state *css) in css_pids() argument 70 return container_of(css, struct pids_cgroup, css); in css_pids() 75 return css_pids(pids->css.parent); in parent_pids() 88 return &pids->css; in pids_css_alloc() 91 static void pids_css_free(struct cgroup_subsys_state *css) in pids_css_free() argument 93 kfree(css_pids(css)); in pids_css_free() 251 pr_cont_cgroup_path(p->css.cgroup); in pids_event() 304 struct cgroup_subsys_state *css = of_css(of); in pids_max_write() local 305 struct pids_cgroup *pids = css_pids(css); in pids_max_write() [all …]
|
| H A D | cpuset-internal.h | 76 struct cgroup_subsys_state css; member 196 static inline struct cpuset *css_cs(struct cgroup_subsys_state *css) in css_cs() argument 198 return css ? container_of(css, struct cpuset, css) : NULL; in css_cs() 209 return css_cs(cs->css.parent); in parent_cs() 215 return css_is_online(&cs->css) && !css_is_dying(&cs->css); in is_cpuset_online() 271 return cgroup_is_populated(cs->css.cgroup); in cpuset_is_populated() 284 css_for_each_child((pos_css), &(parent_cs)->css) \ 299 css_for_each_descendant_pre((pos_css), &(root_cs)->css) \ 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() argument
|
| H A D | cpuset-v1.c | 165 static int cpuset_write_s64(struct cgroup_subsys_state *css, struct cftype *cft, in cpuset_write_s64() argument 168 struct cpuset *cs = css_cs(css); in cpuset_write_s64() 190 static s64 cpuset_read_s64(struct cgroup_subsys_state *css, struct cftype *cft) in cpuset_read_s64() argument 192 struct cpuset *cs = css_cs(css); in cpuset_read_s64() 237 css_task_iter_start(&cs->css, 0, &it); in cpuset1_update_tasks_flags() 263 if (cgroup_transfer_tasks(parent->css.cgroup, cs->css.cgroup)) { in remove_tasks_in_empty_cpuset() 265 pr_cont_cgroup_name(cs->css.cgroup); in remove_tasks_in_empty_cpuset() 276 css_put(&s->cs->css); in cpuset_migrate_tasks_workfn() 310 if (is_empty && cgroup_has_tasks(cs->css.cgroup) && in cpuset1_hotplug_update_tasks() 311 css_tryget_online(&cs->css)) { in cpuset1_hotplug_update_tasks() [all …]
|
| /linux/net/core/ |
| H A D | netprio_cgroup.c | 30 * css->id. Limiting css ID to 16bits doesn't lose anything. 88 * @css: css part of the target pair 93 static u32 netprio_prio(struct cgroup_subsys_state *css, struct net_device *dev) in netprio_prio() argument 96 int id = css->id; in netprio_prio() 105 * @css: css part of the target pair 109 * Set netprio to @prio on @css-@dev pair. Should be called under rtnl 112 static int netprio_set_prio(struct cgroup_subsys_state *css, in netprio_set_prio() argument 116 int id = css->id; in netprio_set_prio() 136 struct cgroup_subsys_state *css; in cgrp_css_alloc() local 138 css = kzalloc_obj(*css); in cgrp_css_alloc() [all …]
|
| H A D | netclassid_cgroup.c | 16 static inline struct cgroup_cls_state *css_cls_state(struct cgroup_subsys_state *css) in css_cls_state() argument 18 return css ? container_of(css, struct cgroup_cls_state, css) : NULL; in css_cls_state() 39 return &cs->css; in cgrp_css_alloc() 42 static int cgrp_css_online(struct cgroup_subsys_state *css) in cgrp_css_online() argument 44 struct cgroup_cls_state *cs = css_cls_state(css); in cgrp_css_online() 45 struct cgroup_cls_state *parent = css_cls_state(css->parent); in cgrp_css_online() 53 static void cgrp_css_free(struct cgroup_subsys_state *css) in cgrp_css_free() argument 55 kfree(css_cls_state(css)); in cgrp_css_free() 109 struct cgroup_subsys_state *css; in cgrp_attach() local 112 cgroup_taskset_for_each(p, css, tset) { in cgrp_attach() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | cgroup_read_xattr.c | 61 struct cgroup_subsys_state *css; in BPF_PROG() local 68 bpf_for_each(css, css, &cgrp->self, BPF_CGROUP_ITER_ANCESTORS_UP) in BPF_PROG() 69 read_xattr(css->cgroup); in BPF_PROG() 80 struct cgroup_subsys_state *css; in BPF_PROG() local 87 bpf_for_each(css, css, &cgrp->self, BPF_CGROUP_ITER_ANCESTORS_UP) in BPF_PROG() 88 read_xattr(css->cgroup); in BPF_PROG() 99 struct cgroup_subsys_state *css; in BPF_PROG() local 107 bpf_for_each(css, cs in BPF_PROG() [all...] |
| H A D | iters_css_task.c | 26 struct cgroup_subsys_state *css; in BPF_PROG() local 38 css = &cgrp->self; in BPF_PROG() 41 bpf_for_each(css_task, task, css, CSS_TASK_ITER_PROCS) in BPF_PROG() 60 struct cgroup_subsys_state *css; in cgroup_id_printer() local 75 css = &cgrp->self; in cgroup_id_printer() 77 bpf_for_each(css_task, task, css, CSS_TASK_ITER_PROCS) { in cgroup_id_printer() 90 struct cgroup_subsys_state *css; in BPF_PROG() local 95 css = &cgrp->self; in BPF_PROG() 97 bpf_for_each(css_task, task, css, CSS_TASK_ITER_PROCS) { in BPF_PROG()
|
| /linux/kernel/sched/ |
| H A D | cpuacct.c | 27 struct cgroup_subsys_state css; member 33 static inline struct cpuacct *css_ca(struct cgroup_subsys_state *css) in css_ca() argument 35 return css ? container_of(css, struct cpuacct, css) : NULL; in css_ca() 46 return css_ca(ca->css.parent); in parent_ca() 62 return &root_cpuacct.css; in cpuacct_css_alloc() 76 return &ca->css; in cpuacct_css_alloc() 87 static void cpuacct_css_free(struct cgroup_subsys_state *css) in cpuacct_css_free() argument 89 struct cpuacct *ca = css_ca(css); in cpuacct_css_free() 163 static u64 __cpuusage_read(struct cgroup_subsys_state *css, in __cpuusage_read() argument 166 struct cpuacct *ca = css_ca(css); in __cpuusage_read() [all …]
|
| /linux/tools/cgroup/ |
| H A D | memcg_slabinfo.py | 36 def find_memcg_ids(css=prog['root_mem_cgroup'].css, prefix=''): argument 37 if not list_empty(css.children.address_of_()): 38 for css in list_for_each_entry('struct cgroup_subsys_state', 39 css.children.address_of_(), 41 name = prefix + '/' + css.cgroup.kn.name.string_().decode('utf-8') 42 memcg = container_of(css, 'struct mem_cgroup', 'css') 43 MEMCGS[css.cgroup.kn.id.value_()] = memcg 44 find_memcg_ids(css, name)
|
| /linux/block/ |
| H A D | blk-cgroup.c | 53 struct cgroup_subsys_state * const blkcg_root_css = &blkcg_root.css; 101 * blkcg_css - find the current css 103 * Find the css associated with either the kthread or the current task. 104 * This may return a dying css, so it is up to the caller to use tryget logic 109 struct cgroup_subsys_state *css; in blkcg_css() local 111 css = kthread_blkcg(); in blkcg_css() 112 if (css) in blkcg_css() 113 return css; in blkcg_css() 143 * Release blkcg css ref only after blkg is removed from q->blkg_list, in blkg_free_workfn() 146 css_put(&blkg->blkcg->css); in blkg_free_workfn() [all …]
|
| H A D | blk-cgroup-fc-appid.c | 14 struct cgroup_subsys_state *css; in blkcg_set_fc_appid() local 24 css = cgroup_get_e_css(cgrp, &io_cgrp_subsys); in blkcg_set_fc_appid() 25 if (!css) { in blkcg_set_fc_appid() 29 blkcg = css_to_blkcg(css); in blkcg_set_fc_appid() 38 css_put(css); in blkcg_set_fc_appid()
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-css | 1 What: /sys/bus/css/devices/.../type 7 What: /sys/bus/css/devices/.../modalias 11 It is of the format css:t<type> and present for all 14 What: /sys/bus/css/drivers/io_subchannel/.../chpids 24 What: /sys/bus/css/drivers/io_subchannel/.../pimpampom 35 What: /sys/bus/css/devices/.../driver_override
|
| /linux/security/ |
| H A D | device_cgroup.c | 44 struct cgroup_subsys_state css; member 51 return s ? container_of(s, struct dev_cgroup, css) : NULL; in css_to_devcgroup() 185 * @css: css getting online 188 static int devcgroup_online(struct cgroup_subsys_state *css) in devcgroup_online() argument 190 struct dev_cgroup *dev_cgroup = css_to_devcgroup(css); in devcgroup_online() 191 struct dev_cgroup *parent_dev_cgroup = css_to_devcgroup(css->parent); in devcgroup_online() 209 static void devcgroup_offline(struct cgroup_subsys_state *css) in devcgroup_offline() argument 211 struct dev_cgroup *dev_cgroup = css_to_devcgroup(css); in devcgroup_offline() 232 return &dev_cgroup->css; in devcgroup_css_alloc() 235 static void devcgroup_css_free(struct cgroup_subsys_state *css) in devcgroup_css_free() argument [all …]
|