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

Name:alloc_ws

Proto:static struct wspace *alloc_ws(struct rs_codec *rs)

Type:struct wspace

Parameter:

TypeParameterName
struct rs_codec *rs
110  nroots = nroots
112  nn = nn
114  ws = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
115  If Not ws Then Return NULL
118  sent codeword = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
120  If Not sent codeword Then Go to err
123  received word = sent codeword + nn
124  syndrome = received word + nn
125  correction buffer = syndrome + nroots
127  errlocs = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
128  If Not errlocs Then Go to err
131  derrlocs = errlocs + nn
132  Return ws
134  err :
135  free_ws(ws)
136  Return NULL
Caller
NameDescribe
run_exercise