Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bch_alloc

Proto:static void *bch_alloc(size_t size, int *err)

Type:void

Parameter:

TypeParameterName
size_tsize
int *err
1165  ptr = kmalloc(size, GFP_KERNEL)
1166  If (ptr == NULL) Then err = 1
1168  Return ptr
Caller
NameDescribe
compute_generator_polynomialmpute generator polynomial for given (m,t) parameters.
init_bch_bch - initialize a BCH encoder/decoder*@m: Galois field order, should be in the range 5-15*@t: maximum error correction capability, in bits*@prim_poly: user-provided primitive polynomial (or 0 to use default)* Returns:* a newly allocated BCH control