函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bio.c Create Date:2022-07-27 18:31:52
Last Modify:2020-03-17 23:13:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:_associate_blkg_from_css - associate a bio with a specified css*@bio: target bio*@css: target css* Associate @bio with the blkg found by combining the css's blkg and the* request_queue of the @bio. This falls back to the queue's root_blkg if

函数原型:void bio_associate_blkg_from_css(struct bio *bio, struct cgroup_subsys_state *css)

返回类型:void

参数:

类型参数名称
struct bio *bio
struct cgroup_subsys_state *css
2101  q等于queue
2104  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
2106  如果非css或非PI: the parent css. Placed here for cache proximity to following* fields of the containing structure.blkg等于root_blkg
2108  否则blkg等于blkg_lookup_create(css_to_blkcg(css), q)
2111  __bio_associate_blkg - associate a bio with the a blkg*@bio: target bio*@blkg: the blkg to associate* This tries to associate @bio with the specified @blkg. Association failure* is handled by walking up the blkg tree. Therefore, the blkg associated can
2113  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
调用者
名称描述
bio_associate_blkg_from_page_associate_blkg_from_page - associate a bio with the page's blkg*@bio: target bio*@page: the page to lookup the blkcg from* Associate @bio with the blkg from @page's owning memcg and the respective* request_queue
bio_associate_blkg_associate_blkg - associate a bio with a blkg*@bio: target bio* Associate @bio with the blkg found from the bio's css and request_queue