函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-flush.c Create Date:2022-07-27 18:38:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:blk_alloc_flush_queue

函数原型:struct blk_flush_queue *blk_alloc_flush_queue(struct request_queue *q, int node, int cmd_size, gfp_t flags)

返回类型:struct blk_flush_queue

参数:

类型参数名称
struct request_queue *q
intnode
intcmd_size
gfp_tflags
492  rq_sz等于sizeof(structrequest)
494  fq等于根据内存节点分配内存
495  如果非fq则转到:fail
498  spin_lock_init( & 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等于根据内存节点分配内存
502  如果非flush_rq则转到:fail_rq
505  初始化链表头
506  初始化链表头
507  初始化链表头
509  lockdep_register_key( & key)
510  lockdep_set_class( & mq_flush_lock, & key)
512  返回:fq
514  fail_rq :
515  释放内存
516  fail :
517  返回:NULL
调用者
名称描述
blk_mq_alloc_hctx