函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ptr_ring_init

函数原型:static inline int ptr_ring_init(struct ptr_ring *r, int size, gfp_t gfp)

返回类型:int

参数:

类型参数名称
struct ptr_ring *r
intsize
gfp_tgfp
488  queue等于Not all gfp_t flags (besides GFP_KERNEL) are allowed. See* documentation for vmalloc for which of them are legal.
489  如果非queue则返回:负ENOMEM
492  __ptr_ring_set_size(r, size)
493  producer等于consumer_head等于 next entry to invalidate 等于0
494  spin_lock_init( & producer_lock)
495  spin_lock_init( & consumer_lock)
497  返回:0
调用者
名称描述
__cpu_map_entry_alloc