| Function report | 
| Source Code: mm\slab.c | Create Date:2022-07-28 15:46:08 | 
| Last Modify:2022-05-23 17:02:55 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Always called with the slab_mutex held
Proto:static int __do_tune_cpucache(struct kmem_cache *cachep, int limit, int batchcount, int shared, gfp_t gfp)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct kmem_cache * | cachep | |
| int | limit | |
| int | batchcount | |
| int | shared | |
| gfp_t | gfp | 
| 3853 | cpu_cache = alloc_kmem_cache_cpus(cachep, limit, batchcount) | 
| 3863 | If prev Then kick_all_cpus_sync() | 
| 3866 | check_irq_on() | 
| 3867 | batchcount = batchcount | 
| 3871 | If Not prev Then Go to setup_node | 
| 3874 | for_each_online_cpu(cpu) | 
| 3878 | ac = per_cpu_ptr(prev, cpu) | 
| 3880 | node = cpu_to_mem(cpu) | 
| 3882 | spin_lock_irq( & list_lock) | 
| 3884 | spin_unlock_irq( & list_lock) | 
| 3885 | slabs_destroy(cachep, & list) | 
| 3889 | setup_node : | 
| Name | Describe | 
|---|---|
| do_tune_cpucache | 
| 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 |