函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blkcg_bind

函数原型:static void blkcg_bind(struct cgroup_subsys_state *root_css)

返回类型:void

参数:

类型参数名称
struct cgroup_subsys_state *root_css
1177  mutex_lock( & blkcg_pol_mutex)
1179 i小于Maximum number of blkcg policies allowed to be registered concurrently.* Defined here to simplify include dependency.循环
1180  pol等于blkcg_policy[i]
1183  如果非pol或非cpd_bind_fn则继续下一循环
1186  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(blkcg, & all_blkcgs, all_blkcgs_node)
1187  如果cpd[plid]则cpd_bind_fn(cpd[plid])
1190  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.