Lines Matching +full:proximity +full:- +full:near +full:- +full:level

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * linux/cgroup-defs.h - basic definitions for cgroup
18 #include <linux/percpu-refcount.h>
19 #include <linux/percpu-rwsem.h>
22 #include <linux/bpf-cgroup-defs.h>
52 CSS_ONLINE = (1 << 1), /* between ->css_online() and ->css_offline() */
76 /* cgroup_root->flags */
127 /* cftype->flags */
146 * be obtained by setting cftype->file_offset.
156 * Per-subsystem/per-cgroup state maintained by the system. This is the
169 /* reference count - access via css_[try]get() and css_put() */
173 * siblings list anchored at the parent's ->children
180 /* flush target list anchored at cgrp->rstat_css_list */
184 * PI: Subsys-unique ID. 0 is unused and root is always 1. The
194 * ->children lists are in the ascending order of ->serial_nr and
210 * PI: the parent css. Placed here for cache proximity to following
218 * css->cgroup->nr_dying_subsys[ssid].
246 * which domain level resource consumptions should be charged.
271 * On the default hierarchy, ->subsys[ssid] may point to a css
274 * ->subsys[ssid]->cgroup->e_csets[ssid] and provides a way to
279 /* all threaded csets whose ->dom_cset points to this cset */
296 * List of csets participating in the on-going migration either as
306 * respectively the source and destination cgroups of the on-going
317 /* For RCU-protected deletion */
331 * rstat - cgroup scalable recursive statistics. Accounting is done
332 * per-cpu in cgroup_rstat_cpu which is then lazily propagated up the
346 * This struct hosts both the fields which implement the above -
347 * updated_children and updated_next - and the fields which track basic
348 * resource statistics on top of it - bsync, bstat and last_bstat.
352 * ->bsync protects ->bstat. These are the only fields which get
365 * This field is used to record the cumulative per-cpu time of
374 * deltas to propagate to the per-cpu subtree_bstat.
380 * are linked on the parent's ->updated_children through
381 * ->updated_next.
383 * In addition to being more compact, singly-linked list pointing
384 * to the cgroup makes it unnecessary for each per-cpu struct to
387 * Protected by per-cpu cgroup_rstat_cpu_lock.
413 /* self css with NULL ->ss, points back to this cgroup */
420 * step down the hierarchy increments the level. This along with
424 int level; member
445 * Each non-empty css_set associated with this cgroup contributes
449 * All children which have non-zero nr_populated_csets and/or
473 * ->subtree_control is the one configured through
474 * "cgroup.subtree_control" while ->subtree_ss_mask is the effective
476 * are made available iff it's enabled in ->subtree_control.
512 * from process granularity and no-internal-task constraint.
513 * Domain level resource consumptions which aren't tied to a
519 /* per-cpu recursive resource statistics */
531 * A singly-linked list of cgroup structures to be rstat flushed.
588 struct rcu_head rcu; /* Must be near the top */
592 * release. cgrp->ancestors[0] will be used overflowing into the
597 /* must follow cgrp for cgrp->ancestors[0], see above */
603 /* Hierarchy-specific flags */
609 /* The name for this hierarchy - may be empty */
617 * - the cgroup to use is file->f_path.dentry->d_parent->d_fsdata
618 * - the 'cftype' of the file is file->f_path.dentry->d_fsdata
631 * be passed to write. If < PAGE_SIZE-1, PAGE_SIZE-1 is assumed.
639 * If non-zero, should contain the offset from the start of css to
651 struct list_head node; /* anchored at ss->cfts */
691 * Maximum write size is determined by ->max_write_len. Use
705 * See Documentation/admin-guide/cgroup-v1/cgroups.rst for details
751 * no-internal-process constraint are ignored and a threaded
770 /* idr for css->id */
788 * is enabled on a cgroup, the depended-upon subsystems are enabled
804 * cgroup_threadgroup_change_begin - threadgroup exclusion for cgroups
816 * cgroup_threadgroup_change_end - threadgroup exclusion for cgroups
842 * sock_cgroup_data is embedded at sock->sk_cgrp_data and contains
843 * per-socket cgroup information except for memcg association.
864 return READ_ONCE(skcd->prioidx); in sock_cgroup_prioidx()
873 return READ_ONCE(skcd->classid); in sock_cgroup_classid()
883 WRITE_ONCE(skcd->prioidx, prioidx); in sock_cgroup_set_prioidx()
891 WRITE_ONCE(skcd->classid, classid); in sock_cgroup_set_classid()