Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mpi_alloc_limb_space

Proto:mpi_ptr_t mpi_alloc_limb_space(unsigned nlimbs)

Type:mpi_ptr_t

Parameter:

TypeParameterName
unsignednlimbs
59  len = nlimbs * sizeof(mpi_limb_t)
61  If Not len Then Return NULL
64  Return kmalloc(len, GFP_KERNEL)
Caller
NameDescribe
mpihelp_mul_karatsuba_case
mpi_powmRES = BASE ^ EXP mod MOD
mpi_allocNote: It was a bad idea to use the number of limbs to allocate* because on a alpha the limbs are large but we normally need* integers of n bits - So we should chnage this to bits (or bytes).* But mpi_alloc is used in a lot of places :-)