Function report | 
Source Code:include\linux\ptr_ring.h | 
Create Date:2022-07-28 13:23:19 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Note: producer lock is nested within consumer lock, so if you* resize you must make sure all uses nest correctly.* In particular if you consume ring in interrupt or BH context, you must* disable interrupts/BH when doing so.
Proto:static inline int ptr_ring_resize(struct ptr_ring *r, int size, gfp_t gfp, void (*destroy)(void *))
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct ptr_ring * | r | |
| int | size | |
| gfp_t | gfp | |
| void (* | destroy | 
| 593 | queue = Not all gfp_t flags (besides GFP_KERNEL) are allowed. See* documentation for vmalloc for which of them are legal. | 
| 599 | spin_lock_irqsave( & consumer_lock, flags) | 
| 600 | spin_lock( & producer_lock) | 
| 604 | spin_unlock( & producer_lock) | 
| 605 | spin_unlock_irqrestore( & consumer_lock, flags) | 
| 609 | Return 0 | 
| 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  |