函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\cgroup.h Create Date:2022-07-27 06:54:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:cgroup_parent

函数原型:static inline struct cgroup *cgroup_parent(struct cgroup *cgrp)

返回类型:struct cgroup

参数:

类型参数名称
struct cgroup *cgrp
552  parent_css等于PI: the parent css. Placed here for cache proximity to following* fields of the containing structure.
554  如果parent_css则返回:container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(parent_css, structcgroup, self)
556  返回:NULL
调用者
名称描述
iterate_groups
cgroup_is_mixablean @cgrp host both domain and threaded children?
cgroup_is_valid_domaina domain which isn't connected to the root w/o brekage can't be used
cgroup_controlsubsystems visibly enabled on a cgroup
cgroup_ss_masksubsystems enabled on a cgroup
cgroup_e_css_by_maskgroup_e_css_by_mask - obtain a cgroup's effective css for the specified ss*@cgrp: the cgroup of interest*@ss: the subsystem of interest (%NULL returns @cgrp->self)* Similar to cgroup_css() but returns the effective css, which is defined* as the matching
cgroup_e_cssgroup_e_css - obtain a cgroup's effective css for the specified subsystem*@cgrp: the cgroup of interest*@ss: the subsystem of interest* Find and get the effective css of @cgrp for @ss
cgroup_get_e_cssgroup_get_e_css - get a cgroup's effective css for the specified subsystem*@cgrp: the cgroup of interest*@ss: the subsystem of interest* Find and get the effective css of @cgrp for @ss
cgroup_update_populatedgroup_update_populated - update the populated count of a cgroup*@cgrp: the target cgroup*@populated: inc or dec populated count* One of the css_sets associated with @cgrp is either getting its first* task or losing the last
put_css_set_locked
link_css_setlink_css_set - a helper function to link a css_set to a cgroup*@tmp_links: cgrp_cset_link objects allocated by allocate_cgrp_cset_links()*@cset: the css_set to be linked*@cgrp: the destination cgroup
cgroup_enable_threadedgroup_enable_threaded - make @cgrp threaded*@cgrp: the target cgroup* Called when "threaded" is written to the cgroup.type interface file and* tries to make @cgrp threaded and join the parent's resource domain.
cgroup_addrm_files
cgroup_procs_write_permission
css_free_rwork_fnss destruction is four-stage process
css_release_work_fn
init_and_link_css
css_create
cgroup_createThe returned cgroup is fully initialized including its control mask, but* it isn't associated with its kernfs_node and doesn't have the control* mask applied.
cgroup_check_hierarchy_limits
cgroup_destroy_lockedgroup_destroy_locked - the first stage of cgroup destruction*@cgrp: cgroup to be destroyed* css's make use of percpu refcnts whose killing latency shouldn't be* exposed to userland and are RCU protected
cgroup_rstat_updatedgroup_rstat_updated - keep track of updated rstat_cpu*@cgrp: target cgroup*@cpu: cpu on which rstat_cpu was updated*@cgrp's rstat_cpu on @cpu was updated. Put it on the parent's matching* rstat_cpu->updated_children list. See the comment on top of
cgroup_rstat_cpu_pop_updatedgroup_rstat_cpu_pop_updated - iterate and dismantle rstat_cpu updated tree*@pos: current position*@root: root of the tree to traversal*@cpu: target cpu* Walks the udpated rstat_cpu tree on @cpu from @root. %NULL @pos starts
cgroup_base_stat_flush
cgroup_base_stat_cputime_show
cgroup_propagate_frozenPropagate the cgroup frozen state upwards by the cgroup tree.
cgroup_bpf_releasegroup_bpf_release() - put references of all bpf programs and* release all cgroup bpf data*@work: work structure embedded into the cgroup to modify
hierarchy_allows_attach parent has non-overridable prog attached,* disallow attaching new programs to the descendent cgroup.* if parent has overridable or multi-prog, allow attaching
compute_effective_progsmpute a chain of effective programs for a given cgroup:* start from the list of programs in this cgroup and add* all parent programs.* Note that parent's F_ALLOW_OVERRIDE-type program is yielding* to programs in this cgroup
cgroup_bpf_inheritgroup_bpf_inherit() - inherit effective programs from parent*@cgrp: the cgroup to modify
cgroup_ancestorgroup_ancestor - find ancestor of cgroup*@cgrp: cgroup to find ancestor of*@ancestor_level: level of ancestor to find starting from root* Find ancestor of cgroup at specified level starting from root if it exists* and return pointer to it
cgroup_account_cputime
cgroup_account_cputime_field