Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:elv_rqhash_find

Proto:struct request *elv_rqhash_find(struct request_queue *q, sector_t offset)

Type:struct request

Parameter:

TypeParameterName
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  Continue
244  If Merge hash stuff.(rq) == offset Then Return rq
248  Return NULL
Caller
NameDescribe
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