函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ss_tryget - try to obtain a reference on the specified css*@css: target css* Obtain a reference on @css unless it already has reached zero and is* being released. This function doesn't care whether @css is on or* offline

函数原型:static inline bool css_tryget(struct cgroup_subsys_state *css)

返回类型:bool

参数:

类型参数名称
struct cgroup_subsys_state *css
350  如果非flags按位与CSS_NO_REF的值则返回:percpu_ref_tryget - try to increment a percpu refcount*@ref: percpu_ref to try-get* Increment a percpu refcount unless its count already reached zero.* Returns %true on success; %false on failure.
352  返回:true
调用者
名称描述
get_mem_cgroup_from_mmget_mem_cgroup_from_mm: Obtain a reference on given mm_struct's memcg.*@mm: mm from which memcg should be extracted. It can be NULL.* Obtain a reference on mm->memcg and returns it if successful. Otherwise* root_mem_cgroup is returned
mem_cgroup_itermem_cgroup_iter - iterate over memory cgroup hierarchy*@root: hierarchy root*@prev: previously returned memcg, NULL on first invocation*@reclaim: cookie for shared reclaim walks, NULL for full walks* Returns references to children of the hierarchy below
hugetlb_cgroup_charge_cgroup
cgroup_tryget
task_get_cssask_get_css - find and get the css for (task, subsys)*@task: the target task*@subsys_id: the target subsystem ID* Find the css for the (@task, @subsys_id) combination, increment a* reference on and return it. This function is guaranteed to return a