Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cgroup.c Create Date:2022-07-28 11:10:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ss destruction is four-stage process

Proto:static void css_free_rwork_fn(struct work_struct *work)

Type:void

Parameter:

TypeParameterName
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  If ss Then
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  If parent Then ss_put - put a css reference*@css: target css* Put a reference obtained via css_get() and css_tryget_online().
4917  Else
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  If cgroup_parent(cgrp) Then
4935  kfree(cgrp)
4936  Else