Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:print_req_error

Proto:static void print_req_error(struct request *req, blk_status_t status, const char *caller)

Type:void

Parameter:

TypeParameterName
struct request *req
blk_status_tstatus
const char *caller
216  idx = status
218  If WARN_ON_ONCE(idx >= ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(blk_errors)) Then Return
221  atelimited messages with local ratelimit_state,* no local ratelimit_state used in the !PRINTK case(r conditions "%s: %s error, dev %s, sector %llu op 0x%x:(%s) flags 0x%x phys_seg %u prio class %u\n", caller, name, rq_disk ? name of major driver : "?", lk_rq_pos() : the current sector* blk_rq_bytes() : bytes left in the entire request* blk_rq_cur_bytes() : bytes left in the current segment* blk_rq_err_bytes() : bytes left till the next error boundary* blk_rq_sectors() : sectors left in the entire , req_op(req), lk_op_str - Return string XXX in the REQ_OP_XXX.*@op: REQ_OP_XXX.* Description: Centralize block layer function to convert REQ_OP_XXX into* string format. Useful in the debugging and tracing bio or request. For, op and common flags & ~REQ_OP_MASK, * Number of scatter-gather DMA addr+len pairs after * physical address coalescing is performed., IOPRIO_PRIO_CLASS(ioprio))
Caller
NameDescribe
blk_update_requestlk_update_request - Special helper function for request stacking drivers*@req: the request being processed*@error: block status code*@nr_bytes: number of bytes to complete @req* Description:* Ends I/O on a number of bytes attached to @req, but doesn't