Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-cgroup.c Create Date:2022-07-28 17:39:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:struct blkcg_gq *blkg_lookup_create(struct blkcg *blkcg, struct request_queue *q)

Type:struct blkcg_gq

Parameter:

TypeParameterName
struct blkcg *blkcg
struct request_queue *q
383  blkg = lkg_lookup - lookup blkg for the specified blkcg - q pair*@blkcg: blkcg of interest*@q: request_queue of interest* Lookup blkg for the @blkcg - @q pair. This function should be called* under RCU read lock.
385  If Value for the false possibility is greater at compile time(!blkg) Then
388  spin_lock_irqsave( & queue_lock, flags)
389  blkg = __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
390  spin_unlock_irqrestore( & queue_lock, flags)
393  Return blkg