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

Name:run_exercise

Proto:static int run_exercise(struct etab *e)

Type:int

Parameter:

TypeParameterName
struct etab *e
444  nn = (1 << symsize) - 1
445  kk = nn - nroots
447  retval = -ENOMEM
448  max_pad = kk - 1
449  prev_pad = -1
453  rsc = _rs - Create a RS control struct and initialize it*@symsize: the symbol size (number of bits)*@gfpoly: the extended Galois field generator polynomial coefficients,* with the 0th coefficient in the low order bit
454  If Not rsc Then Return retval
457  ws = alloc_ws(codec)
458  If Not ws Then Go to err
461  retval = 0
462  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(pad_coef) cycle
463  pad = mult * max_pad >> shift
464  len = nn - pad
466  If pad == prev_pad Then Continue
469  prev_pad = pad
470  If v >= V_PROGRESS Then
471  pr_info("Testing (%d,%d)_%d code...\n", len, kk - pad, nn + 1)
475  retval |= exercise_rs(rsc, ws, len, ntrials)
476  If bc Then retval |= exercise_rs_bc(rsc, ws, len, ntrials)
480  free_ws(ws)
482  err :
483  _rs - Free the rs control structure*@rs: The control structure which is not longer used by the* caller* Free the control structure. If @rs is the last user of the associated* codec, free the codec as well.
484  Return retval
Caller
NameDescribe
test_rslib_init