| 函数逻辑报告 | 
| Source Code: include\linux\ptr_ring.h | Create Date:2022-07-27 14:41:03 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Return entries into ring
函数原型:static inline void ptr_ring_unconsume(struct ptr_ring *r, void **batch, int n, void (*destroy)(void *))
返回类型:void
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct ptr_ring * | r | |
| void ** | batch | |
| int | n | |
| void (* | destroy | 
| 516 | spin_lock_irqsave( & consumer_lock, flags) | 
| 517 | 加自旋锁 | 
| 519 | 如果非 Read-only by both the producer and the consumer 则转到:done | 
| 526 | head等于consumer_head减1 | 
| 527 | 当此条件成立可能性大(为编译器优化)(head >= next entry to invalidate )循环 | 
| 536 | head等于consumer_head减1 | 
| 537 | 如果head小于0则head等于 Read-only by both the producer and the consumer 减1 | 
| 541 | 转到:done | 
| 544 | next entry to invalidate 等于head | 
| 546 | WRITE_ONCE(consumer_head, head) | 
| 549 | done : | 
| 553 | 自旋锁解锁 | 
| 554 | spin_unlock_irqrestore( & consumer_lock, flags) | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |