函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:elv_rqhash_find

函数原型:struct request *elv_rqhash_find(struct request_queue *q, sector_t offset)

返回类型:struct request

参数:

类型参数名称
struct request_queue *q
sector_toffset
232  e等于elevator
236  hash_for_each_possible_safe - iterate over all possible objects hashing to the* same bucket safe against removals*@name: hashtable to iterate*@obj: the type * to use as a loop cursor for each entry*@tmp: a &struct used for temporary storage*@member: the (hash, rq, next, hash, offset)
237  BUG_ON(!Internal elevator interface(rq))
241  继续下一循环
244  如果Merge hash stuff.(rq)恒等于offset则返回:rq
248  返回:NULL
调用者
名称描述
elv_merge
elv_attempt_insert_mergeAttempt to do an insertion back merge. Only check for the case where* we can append 'rq' to an existing request, so we can throw 'rq' away* afterwards.* Returns true if we merged, false otherwise