| Function report | 
| Source Code: mm\slab.c | Create Date:2022-07-28 15:46:16 | 
| Last Modify:2022-05-23 17:02:55 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Drain an array if it contains any elements taking the node lock only if* necessary. Note that the node listlock also protects the array_cache* if drain_array() is used on the shared array.
Proto:static void drain_array(struct kmem_cache *cachep, struct kmem_cache_node *n, struct array_cache *ac, int node)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct kmem_cache * | cachep | |
| struct kmem_cache_node * | n | |
| struct array_cache * | ac | |
| int | node | 
| 3999 | check_mutex_acquired() | 
| 4004 | If touched Then | 
| 4005 | touched = 0 | 
| 4006 | Return | 
| 4009 | spin_lock_irq( & list_lock) | 
| 4010 | drain_array_locked(cachep, ac, node, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., & list) | 
| 4011 | spin_unlock_irq( & list_lock) | 
| 4013 | slabs_destroy(cachep, & list) | 
| Name | Describe | 
|---|---|
| cache_reap | ache_reap - Reclaim memory from caches | 
| 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 |