Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-28 17:09:24
Last Modify:2020-03-17 23:18:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dispatch_rq_from_ctx

Proto:static bool dispatch_rq_from_ctx(struct sbitmap *sb, unsigned int bitnr, void *data)

Type:bool

Parameter:

TypeParameterName
struct sbitmap *sb
unsigned intbitnr
void *data
982  dispatch_data = data
983  hctx = hctx
984  ctx = @ctxs: Array of software queues. [bitnr]
985  type = @type: HCTX_TYPE_* flags. Type of hardware queue.
987  spin_lock( & lock)
988  If Not list_empty - tests whether a list is empty*@head: the list to test. Then
989  rq = list_entry_rq(next)
990  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
991  If list_empty - tests whether a list is empty*@head: the list to test. Then sbitmap_clear_bit(sb, bitnr)
994  spin_unlock( & lock)
996  Return Not rq