函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ss destruction is four-stage process

函数原型:static void css_free_rwork_fn(struct work_struct *work)

返回类型:void

参数:

类型参数名称
struct work_struct *work
4899  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.(to_rcu_work(work), structcgroup_subsys_state, destroy_rwork)
4901  ss等于PI: the cgroup subsystem that this css is attached to
4902  cgrp等于PI: the cgroup that this css is attached to
4904  percpu_ref_exit - undo percpu_ref_init()*@ref: percpu_ref to exit* This function exits @ref
4906  如果ss
4908  parent等于PI: the parent css. Placed here for cache proximity to following* fields of the containing structure.
4909  id等于PI: Subsys-unique ID. 0 is unused and root is always 1. The* matching css can be looked up using css_from_id().
4911  css_free(css)
4912  cgroup_idr_remove( & idr for css->id , id)
4913  cgroup_put(cgrp)
4915  如果parent设置一个css引用
4917  否则
4919  atomic_dec( & Number of cgroups in the hierarchy, used only for /proc/cgroups )
4920  Used to destroy all pidlists lingering waiting for destroy timer. None* should be left afterwards.
4921  ancel_work_sync - cancel a work and wait for it to finish*@work: the work to cancel* Cancel @work and wait for its execution to finish. This function* can be used even if the work re-queues itself or migrates to* another workqueue
4923  如果cgroup_parent(cgrp)则
4935  kfree(cgrp)
4936  否则