Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blk_alloc_flush_queue

Proto:struct blk_flush_queue *blk_alloc_flush_queue(struct request_queue *q, int node, int cmd_size, gfp_t flags)

Type:struct blk_flush_queue

Parameter:

TypeParameterName
struct request_queue *q
intnode
intcmd_size
gfp_tflags
492  rq_sz = sizeof(structrequest)
494  fq = kzalloc_node - allocate zeroed memory from a particular memory node.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).*@node: memory node from which to allocate
495  If Not fq Then Go to fail
498  Process spin lock initialization( & mq_flush_lock)
500  rq_sz = und_up - round up to next specified power of 2*@x: the value to round*@y: multiple to round up to (must be a power of 2)* Rounds @x up to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding up, use roundup() below.(rq_sz + cmd_size, cache_line_size())
501  flush_rq = kzalloc_node - allocate zeroed memory from a particular memory node.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).*@node: memory node from which to allocate
502  If Not flush_rq Then Go to fail_rq
505  Initialization list head
506  Initialization list head
507  Initialization list head
509  lockdep_register_key( & key)
510  lockdep_set_class( & mq_flush_lock, & key)
512  Return fq
514  fail_rq :
515  kfree(fq)
516  fail :
517  Return NULL
Caller
NameDescribe
blk_mq_alloc_hctx