Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\ptr_ring.h Create Date:2022-07-28 13:23:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ptr_ring_init

Proto:static inline int ptr_ring_init(struct ptr_ring *r, int size, gfp_t gfp)

Type:int

Parameter:

TypeParameterName
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  If Not queue Then Return -ENOMEM
492  __ptr_ring_set_size(r, size)
493  producer = consumer_head = next entry to invalidate = 0
494  Process spin lock initialization( & producer_lock)
495  Process spin lock initialization( & consumer_lock)
497  Return 0
Caller
NameDescribe
__cpu_map_entry_alloc