函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mm.h Create Date:2022-07-27 06:44:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kvmalloc_array

函数原型:static inline void *kvmalloc_array(size_t n, size_t size, gfp_t flags)

返回类型:void

参数:

类型参数名称
size_tn
size_tsize
gfp_tflags
670  如果此条件成立可能性小(为编译器优化)(check_mul_overflow(n, size, & bytes))则返回:NULL
673  返回:kvmalloc(bytes, flags)
调用者
名称描述
get_pages_array
__alloc_bucket_spinlocksAllocate an array of spinlocks to be accessed by a hash. Two arguments* indicate the number of elements to allocate in the array. max_size* gives the maximum number of elements to allocate. cpu_mult gives* the number of locks per CPU to allocate
pidlist_array_loadLoad a cgroup's pidarray with either procs' tgids or tasks' pids
semctl_main
do_semtimedop
alloc_fdtable
io_sqe_buffer_register
kvcalloc
__ptr_ring_init_queue_allocNot all gfp_t flags (besides GFP_KERNEL) are allowed. See* documentation for vmalloc for which of them are legal.