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:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Tests for correct behaviour beyond error correction capacity

Proto:static void test_bc(struct rs_control *rs, int len, int errs, int eras, int trials, struct bcstat *stat, struct wspace *ws)

Type:void

Parameter:

TypeParameterName
struct rs_control *rs
intlen
interrs
interas
inttrials
struct bcstat *stat
struct wspace *ws
370  nroots = nroots
371  dlen = len - nroots
372  derrlocs = derrlocs
373  corr = correction buffer
374  r = received word
377  When j < trials cycle
378  Generates a random codeword and stores it in c
379  derrs = decode_rs16(rs, r, r + dlen, dlen, NULL, eras, derrlocs, 0, corr)
381  fix_err(r, derrs, corr, derrlocs)
383  If derrs >= 0 Then
384  rsuccess++
395  memset(corr, 0, nroots * size of corr )
396  encode_rs16(rs, r, dlen, corr, 0)
398  If memcmp(r + dlen, corr, nroots * size of corr ) Then noncw++
400  Else
401  rfail++
404  nwords += trials
Caller
NameDescribe
exercise_rs_bc