Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This is called when the refcnt of a css is confirmed to be killed.* css_tryget_online() is now guaranteed to fail. Tell the subsystem to* initate destruction and put the css ref from kill_css().

Proto:static void css_killed_work_fn(struct work_struct *work)

Type:void

Parameter:

TypeParameterName
struct work_struct *work
5354  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.(work, structcgroup_subsys_state, destroy_work)
5357  mutex_lock( & cgroup_mutex is the master lock)
5359  Do
5360  the CSS is online, invoke ->css_offline() on it and mark it offline
5361  ss_put - put a css reference*@css: target css* Put a reference obtained via css_get() and css_tryget_online().
5363  css = PI: the parent css. Placed here for cache proximity to following* fields of the containing structure.
5364  When css && atomic_dec_and_test( & Incremented by online self and children. Used to guarantee that* parents are not offlined before their children.) cycle
5366  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.