函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Not all gfp_t flags (besides GFP_KERNEL) are allowed. See* documentation for vmalloc for which of them are legal.

函数原型:static inline void **__ptr_ring_init_queue_alloc(unsigned int size, gfp_t gfp)

返回类型:void

参数:

类型参数名称
unsigned intsize
gfp_tgfp
468  如果size大于Maximum allocatable size 除*的长度则返回:NULL
470  返回:kvmalloc_array(size, *的长度, gfp | __GFP_ZERO)
调用者
名称描述
ptr_ring_init
ptr_ring_resizeNote: producer lock is nested within consumer lock, so if you* resize you must make sure all uses nest correctly.* In particular if you consume ring in interrupt or BH context, you must* disable interrupts/BH when doing so.
ptr_ring_resize_multipleNote: producer lock is nested within consumer lock, so if you* resize you must make sure all uses nest correctly.* In particular if you consume ring in interrupt or BH context, you must* disable interrupts/BH when doing so.