Function report | 
Source Code:include\linux\ptr_ring.h | 
Create Date:2022-07-28 13:23:14 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Return entries into ring
Proto:static inline void ptr_ring_unconsume(struct ptr_ring *r, void **batch, int n, void (*destroy)(void *))
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct ptr_ring * | r | |
| void ** | batch | |
| int | n | |
| void (* | destroy | 
| 516 | spin_lock_irqsave( & consumer_lock, flags) | 
| 517 | spin_lock( & producer_lock) | 
| 519 | If Not Read-only by both the producer and the consumer Then Go to done | 
| 526 | head = consumer_head - 1 | 
| 536 | head = consumer_head - 1 | 
| 537 | If head < 0 Then head = Read-only by both the producer and the consumer - 1 | 
| 541 | Go to done | 
| 544 | next entry to invalidate = head | 
| 546 | WRITE_ONCE(consumer_head, head) | 
| 549 | done : | 
| 553 | spin_unlock( & producer_lock) | 
| 554 | spin_unlock_irqrestore( & consumer_lock, flags) | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |