Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Must only be called after __ptr_ring_peek returned !NULL

Proto:static inline void __ptr_ring_discard_one(struct ptr_ring *r)

Type:void

Parameter:

TypeParameterName
struct ptr_ring *r
263  consumer_head = consumer_head
264  head = consumer_head++
271  If Value for the false possibility is greater at compile time(consumer_head - next entry to invalidate >= number of entries to consume in a batch || consumer_head >= Read-only by both the producer and the consumer ) Then
278  When Value is more likely to compile time(head >= next entry to invalidate ) cycle
279  queue[head--] = NULL
280  next entry to invalidate = consumer_head
282  If Value for the false possibility is greater at compile time(consumer_head >= Read-only by both the producer and the consumer ) Then
283  consumer_head = 0
284  next entry to invalidate = 0
287  WRITE_ONCE(consumer_head, consumer_head)