函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lkcg_policy_unregister - unregister a blkcg policy*@pol: blkcg policy to unregister* Undo blkcg_policy_register(@pol). Might sleep.

函数原型:void blkcg_policy_unregister(struct blkcg_policy *pol)

返回类型:void

参数:

类型参数名称
struct blkcg_policy *pol
1458  mutex_lock( & lkcg_pol_mutex protects blkcg_policy[] and policy [de]activation.* blkcg_pol_register_mutex nests outside of it and synchronizes entire* policy [un]register operations including cgroup file additions /* removals)
1460  如果WARN_ON(blkcg_policy[plid] != pol)则转到:out_unlock
1464  如果 cgroup files for the policy group_rm_cftypes - remove an array of cftypes from a subsystem*@cfts: zero-length name terminated array of cftypes* Unregister @cfts. Files described by @cfts are removed from all* existing cgroups and all future cgroups won't have them either. This
1466  如果legacy_cftypesgroup_rm_cftypes - remove an array of cftypes from a subsystem*@cfts: zero-length name terminated array of cftypes* Unregister @cfts. Files described by @cfts are removed from all* existing cgroups and all future cgroups won't have them either. This
1470  mutex_lock( & blkcg_pol_mutex)
1472  如果cpd_free_fn
1474  如果cpd[plid]则
1475  cpd_free_fn(cpd[plid])
1476  cpd[plid] = NULL
1480  =
1482  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.
1483  out_unlock :
1484  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.
调用者
名称描述
iolatency_exit
ioc_exit