Function report |
Source Code:include\linux\ptr_ring.h |
Create Date:2022-07-28 13:23:23 |
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_multiple(struct ptr_ring **rings, unsigned int nrings, int size, gfp_t gfp, void (*destroy)(void *))
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct ptr_ring ** | rings | |
unsigned int | nrings | |
int | size | |
gfp_t | gfp | |
void (* | destroy |
627 | queues = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
638 | spin_lock_irqsave( & consumer_lock, flags) |
639 | spin_lock( & producer_lock) |
642 | spin_unlock( & producer_lock) |
643 | spin_unlock_irqrestore( & consumer_lock, flags) |
651 | Return 0 |
653 | nomem : |
659 | noqueues : |
660 | Return -ENOMEM |
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 |