函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:exercise_rs_bc

函数原型:static int exercise_rs_bc(struct rs_control *rs, struct wspace *ws, int len, int trials)

返回类型:int

参数:

类型参数名称
struct rs_control *rs
struct wspace *ws
intlen
inttrials
410  struct bcstat stat = {0, 0, 0, 0}
411  nroots等于nroots
414  如果v大于等于V_PROGRESS打印信息("Testing beyond error correction capacity...\n")
417 errs小于等于nroots循环
418  eras等于nroots减2乘errs加1
419  如果eras小于0则eras等于0
422  cutoff等于如果nroots小于等于lenerrsnroots否则lenerrs
423 eras小于等于cutoff循环Tests for correct behaviour beyond error correction capacity
427  如果v大于等于V_CSUMMARY
428  打印信息(" decoder gives up: %d / %d\n", rfail, nwords)
430  打印信息(" decoder returns success: %d / %d\n", rsuccess, nwords)
432  打印信息(" not a codeword: %d / %d\n", noncw, rsuccess)
436  如果noncwv大于等于V_PROGRESS打印警告信息(" FAIL: %d silent failures!\n", noncw)
439  返回:noncw
调用者
名称描述
run_exercise