Function report |
Source Code:lib\reed_solomon\reed_solomon.c |
Create Date:2022-07-28 06:59:10 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:_rs_internal - Allocate rs control, find a matching codec or allocate a new one*@symsize: the symbol size (number of bits)*@gfpoly: the extended Galois field generator polynomial coefficients,* with the 0th coefficient in the low order bit
Proto:static struct rs_control *init_rs_internal(int symsize, int gfpoly, int (*gffunc)(int ), int fcr, int prim, int nroots, gfp_t gfp)
Type:struct rs_control
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | symsize | |
| int | gfpoly | |
| int (* | gffunc | |
| int | fcr | |
| int | prim | |
| int | nroots | |
| gfp_t | gfp |
| 222 | If symsize < 1 Then Return NULL |
| 236 | bsize = sizeof(uint16_t) * RS_DECODE_NUM_BUFFERS * (nroots + 1) |
| 237 | rs = 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). |
| 238 | If Not rs Then Return NULL |
| 241 | mutex_lock( & Protection for the list ) |
| 260 | users++ |
| 262 | Go to out |
| 267 | If Not codec Then |
| 271 | out : |
| 272 | mutex_unlock( & Protection for the list ) |
| 273 | Return rs |
| Name | Describe |
|---|---|
| init_rs_gfp | _rs_gfp - 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 |
| init_rs_non_canonical | _rs_non_canonical - Allocate rs control struct for fields with* non-canonical representation*@symsize: the symbol size (number of bits)*@gffunc: pointer to function to generate the next field element,* or the multiplicative identity element if given 0 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |