Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lk_cloned_rq_check_limits - Helper function to check a cloned request* for new the queue limits*@q: the queue*@rq: the request being checked* Description:*@rq may have been made based on weaker limitations of upper-level queues

Proto:static int blk_cloned_rq_check_limits(struct request_queue *q, struct request *rq)

Type:int

Parameter:

TypeParameterName
struct request_queue *q
struct request *rq
1224  If blk_rq_sectors(rq) > blk_queue_get_max_sectors(q, req_op(rq)) Then
1225  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
1228  Return -EIO
1237  * Number of scatter-gather DMA addr+len pairs after * physical address coalescing is performed. = blk_recalc_rq_segments(rq)
1238  If * Number of scatter-gather DMA addr+len pairs after * physical address coalescing is performed. > queue_max_segments(q) Then
1239  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
1241  Return -EIO
1244  Return 0
Caller
NameDescribe
blk_insert_cloned_requestlk_insert_cloned_request - Helper for stacking drivers to submit a request*@q: the queue to submit the request*@rq: the request being queued