Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\reed_solomon\test_rslib.c Create Date:2022-07-28 06:59:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:exercise_rs_bc

Proto:static int exercise_rs_bc(struct rs_control *rs, struct wspace *ws, int len, int trials)

Type:int

Parameter:

TypeParameterName
struct rs_control *rs
struct wspace *ws
intlen
inttrials
410  struct bcstat stat = {0, 0, 0, 0}
411  nroots = nroots
414  If v >= V_PROGRESS Then pr_info("Testing beyond error correction capacity...\n")
417  When errs <= nroots cycle
418  eras = nroots - 2 * errs + 1
419  If eras < 0 Then eras = 0
422  cutoff = If nroots <= len - errs Then nroots Else len - errs
423  When eras <= cutoff cycle Tests for correct behaviour beyond error correction capacity
427  If v >= V_CSUMMARY Then
428  pr_info(" decoder gives up: %d / %d\n", rfail, nwords)
430  pr_info(" decoder returns success: %d / %d\n", rsuccess, nwords)
432  pr_info(" not a codeword: %d / %d\n", noncw, rsuccess)
436  If noncw && v >= V_PROGRESS Then pr_warn(" FAIL: %d silent failures!\n", noncw)
439  Return noncw
Caller
NameDescribe
run_exercise