函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:print_req_error

函数原型:static void print_req_error(struct request *req, blk_status_t status, const char *caller)

返回类型:void

参数:

类型参数名称
struct request *req
blk_status_tstatus
const char *caller
216  idx等于status
218  如果WARN_ON_ONCE(idx >= ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(blk_errors))则返回
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))
调用者
名称描述
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