| Function report | 
| Source Code: mm\slab.c | Create Date:2022-07-28 15:43:39 | 
| Last Modify:2022-05-23 17:02:55 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:init_cache_node
Proto:static int init_cache_node(struct kmem_cache *cachep, int node, gfp_t gfp)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct kmem_cache * | cachep | |
| int | node | |
| gfp_t | gfp | 
| 865 | If n Then | 
| 866 | spin_lock_irq( & list_lock) | 
| 867 | free_limit = (1 + nr_cpus_node(node)) * batchcount + num | 
| 869 | spin_unlock_irq( & list_lock) | 
| 871 | Return 0 | 
| 874 | n = kmalloc_node(sizeof(structkmem_cache_node), gfp, node) | 
| 878 | kmem_cache_node_init(n) | 
| 879 | next_reap = jiffies + REAPTIMEOUT_NODE + cachep % REAPTIMEOUT_NODE | 
| 882 | free_limit = (1 + nr_cpus_node(node)) * batchcount + num | 
| 892 | Return 0 | 
| Name | Describe | 
|---|---|
| init_cache_node_node | Allocates and initializes node for a node on each slab cache, used for* either memory or cpu hotplug | 
| setup_kmem_cache_node | 
| 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 |