函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\bch.c Create Date:2022-07-27 07:57:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bch_alloc

函数原型:static void *bch_alloc(size_t size, int *err)

返回类型:void

参数:

类型参数名称
size_tsize
int *err
1165  ptr等于kmalloc(size, GFP_KERNEL)
1166  如果(ptr == NULL)则err等于1
1168  返回:ptr
调用者
名称描述
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