Function report |
Source Code:mm\slab.c |
Create Date:2022-07-28 15:43:44 |
Last Modify:2022-05-23 17:02:55 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:setup_kmem_cache_node
Proto:static int setup_kmem_cache_node(struct kmem_cache *cachep, int node, gfp_t gfp, bool force_change)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct kmem_cache * | cachep | |
int | node | |
gfp_t | gfp | |
bool | force_change |
925 | struct array_cache * old_shared = NULL |
926 | struct array_cache * new_shared = NULL |
927 | struct alien_cache * * new_alien = NULL |
936 | If shared Then |
937 | new_shared = alloc_arraycache(node, shared * batchcount, 0xbaadf00d, gfp) |
939 | If Not new_shared Then Go to fail |
943 | ret = init_cache_node(cachep, node, gfp) |
948 | spin_lock_irq( & list_lock) |
949 | If shared && force_change Then |
952 | avail = 0 |
955 | If Not shared || force_change Then |
961 | If Not alien Then |
966 | spin_unlock_irq( & list_lock) |
967 | slabs_destroy(cachep, & list) |
978 | fail : |
979 | kfree(old_shared) |
980 | kfree(new_shared) |
983 | Return ret |
Name | Describe |
---|---|
setup_kmem_cache_nodes | This initializes kmem_cache_node or resizes various caches for all nodes. |
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 |