函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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().

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

返回类型:void

参数:

类型参数名称
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  循环
5360  the CSS is online, invoke ->css_offline() on it and mark it offline
5361  设置一个css引用
5363  css等于PI: the parent css. Placed here for cache proximity to following* fields of the containing structure.
5364 cssatomic_dec_and_test( & Incremented by online self and children. Used to guarantee that* parents are not offlined before their children.)循环
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.