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:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__ptr_ring_set_size

Proto:static inline void __ptr_ring_set_size(struct ptr_ring *r, int size)

Type:void

Parameter:

TypeParameterName
struct ptr_ring *r
intsize
475  Read-only by both the producer and the consumer = size
476  number of entries to consume in a batch = SMP_CACHE_BYTES * 2 / size of *queue
482  If number of entries to consume in a batch > Read-only by both the producer and the consumer / 2 || Not number of entries to consume in a batch Then number of entries to consume in a batch = 1