| Function report | 
| Source Code: block\blk-cgroup.c | Create Date:2022-07-28 17:39:30 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:__blkg_lookup_create - lookup blkg, try to create one if not there*@blkcg: blkcg of interest*@q: request_queue of interest* Lookup blkg for the @blkcg - @q pair. If it doesn't exist, try to* create one
Proto:struct blkcg_gq *__blkg_lookup_create(struct blkcg *blkcg, struct request_queue *q)
Type:struct blkcg_gq
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct blkcg * | blkcg | |
| struct request_queue * | q | 
| 336 | WARN_ON_ONCE(!_read_lock_held() - might we be in RCU read-side critical section?* If CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an RCU* read-side critical section) | 
| 337 | lockdep_assert_held( & queue_lock) | 
| 348 | When (true) cycle | 
| 350 | parent = lkcg_parent - get the parent of a blkcg*@blkcg: blkcg of interest* Return the parent blkcg of @blkcg. Can be called anytime. | 
| 355 | If blkg Then | 
| Name | Describe | 
|---|---|
| blkg_lookup_create | lkg_lookup_create - find or create a blkg*@blkcg: target block cgroup*@q: target request_queue* This looks up or creates the blkg representing the unique pair* of the blkcg and the request_queue. | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |